only_lurking

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

only_lurking,

If lemmygrad is what op is commenting on, they left it out of the image and caption.

only_lurking,

I think it would be much better to write it in another language, but here’s another way to do the second one (this is on Visual Basic):

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Dim n as long
</span><span style="color:#323232;">Dim product as long
</span><span style="color:#323232;">Product = 1
</span><span style="color:#323232;">
</span><span style="color:#323232;">For n = 1 to 4
</span><span style="color:#323232;">Product = product * 2 * n
</span><span style="color:#323232;">Next n
</span>
only_lurking,

For the case that n = 0 (before the first run of the loop), x(0) = 1.

For the first actual case, n = 1. X(1) = x(0)3n = 131 = 3.

For the next case, n = 2. X(2) = x(1)3n = 332 = 18.

For the next case, n = 3. X(3) = x(2)3n = 1833 = 162.

For the next and last case, n = 4. X(4) = 16234 which I’m not computing. The computer value of x(4) is the value of the product loop.

If that doesn’t help, I could try helping again to rephrase, but I’m not sure what else to add.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines