, ,

[SOLVED] Cs150 – zoom

$25

File Name: Cs150_____zoom.zip
File Size: 131.88 KB

Categories: , , Tags: , ,
5/5 - (1 vote)

Lab 7: FizzBuzz
Write a program that prints the numbers from 1 to 100, one per line, but for multiples of three print “Fizz” instead of the number and for multiples of 5 print “Buzz” instead of the number. For numbers which are multiples of both three and five instead print
“FizzBuzz”.

Example Output:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Cs150 – zoom[SOLVED] Cs150 – zoom
$25