Question: Exercise 1 a) Input one positive integer A from the keyboard, print all the numbers from A to 1 in two way: (1) using for-loop
Exercise 1
a) Input one positive integer A from the keyboard, print all the numbers from A to 1 in two way: (1) using for-loop and (2) using while-loop. All the numbers should be printed on a same line, separated by , . Example: Input: 5 Output: 5, 4, 3, 2, 1
b) Input two positive integers a and b. Check for the following conditions: - If a=b, print the message that two numbers are equal. - If a - If a>b, print the numbers from b to a (including a and b).
c) Input a 3-digit positive integer and output its English word representation. Example: Input: 423 Output: Four hundred twenty three
*Please show the detailed steps (a must) in Python and explanations(if possible)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
