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:

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
Get step-by-step solutions from verified subject matter experts
