Sezma
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 15728 |
|
|
| 12 Mar 2015 03:14 PM |
Like a console game
im bored |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2015 03:15 PM |
make a fizzbuzz game in only 1 line
1 - 15 numbers |
|
|
| Report Abuse |
|
|
Sezma
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 15728 |
|
| |
|
Sezma
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 15728 |
|
| |
|
|
| 12 Mar 2015 03:18 PM |
it iterates through first 15 numbers
if number can be divided cleanly by 5 and 3
it logs "fizzbuzz" if can be divided cleanly by 5 it logs buzz
and if can be divivded cleanly by 3 it logs fizz
and if it doesnt at all it logs the number |
|
|
| Report Abuse |
|
|