Exercises on Control Flow

Enhance your programming by practicing loops and conditionals.

We'll cover the following

Question 1

FizzBuzz : Write a program that prints the numbers from 1 to 100. 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”.

Don’t look at the solution tab until and unless you give it a try yourself.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy