Question: c++ could you explain the answer? 20. Write a program which asks the user for an integer number and counts dewn from that number to
20. Write a program which asks the user for an integer number and counts dewn from that number to one. A. Example i. Input - Please enter number: 6 ii. Output - Counining down - Counter is 6 - Comner is 5 - Counter ir 4 - Counter is 3 - Counter in 2 - Counter is 1 21. Write a program which asks the user for an integer number and counts ap to that number from one. B3. Example iii. Input - Please enter number: 6 iv. Output - Counting up - Coumer is l ef 6 - Counter is 2 of 6 - Counter ir 3 ef 6 - Counter is 4 of 6 - Counter is 5 of 6 - Couner is 6 of 6 22. Write a program which asks the user for an integer number and prints out whether the inpur number is positive or negative. (Consider 0 to be positive) A. Example 1 i. Input: - Please enier number: 42 ii. Oatput: - Number is positive B. Example 2 i. Input: - Please enter namber; 9 ii. Oulput: - Numher is Negawe 23. Write a program wbich asks the user for an integer number and prints out whether the inpur number is positive or negative. (Consider 0 to be a special ease) A. Example 1 i. Input: - Please ener number: 0 ii. Outpur: - Zero is meidher positive nor nggative B. Example? i. Input: - Please enter number; 9 ii. Oviput
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
