Question: You are to write a program that displays all integers from 22 to 4 in order from the greatest integer down to the least integer.

You are to write a program that displays all integers from 22 to 4 in order from the greatest integer down to the least integer. If one of these integers is divisible by 5, print an asterisk (*) after the number on the same line. If one of these integers is divisible by 3, print a Y after the number on the same line.

*using putty*

sample output:

You are to write a program that displays all integers from 22

22 21Y 20* 19 18Y 17 16 15*Y 14 13 12Y 11 10* 9Y 18 8 7 6Y 5* 4 4

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 Databases Questions!