Challenge for Control Structures
Try some FizzBuzz, the classic basic programming challenge.
Write a program that prints the numbers from 1 to 50, but for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
print() to print output with a newline. Make sure you print "FizzBuzz" together.
Alternatively, you can try out Learneroo before signing up.