Question: Write a program that will display all numbers from 1 to 1 0 0 ( not 0 to 9 9 ) . You must use

Write a program that will display all numbers from 1 to 100( not 0 to 99). You must use a for or do...while loop. If a number is a multiple of 3, display Go instead of the number. If the number is a multiple of 6, display CSU instead of the number. If the number is a multiple of 7, display Vikings! instead of the number. If the number is a multiple of 3,6, and 7 display Go CSU Vikings! also instead of the number.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!