You are viewing a single comment's thread from:

RE: AP Computer Science Lesson Introductory Java Language Features (5)

in #tutorials7 years ago

Your "bell work" code as written will not print out anything, as the code will fail to compile. The first occurrence of the variable number3 appears as "number 3". Also, the line

for (i = 1; i = n; i++)

is not a legit for-loop. I'm guessing you were going for "i <= n".

Correcting the syntax errors would result in an output of 11235813, the first 7 numbers of the Fibonacci sequence in run-on form.

Sort:  

Excellent work doughtaker! A+ work for sure. Corrected the mistakes + found the Fibonacci sequence. You would win more sbd, but I've been transferring the sbd payouts to btc. Maybe I'll make another contest for steem. Nice hearing from you!

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 58470.49
ETH 2617.16
USDT 1.00
SBD 2.39