1. Print the the source code for the program. 2. Print a single output window that performs the following:
3. use functions where needed : Input, Calculation, Display. The Input function should employ a forever loop to ensure that a positive integer is entered. |
1. Print the the source code for the program. 2. Print a single output window with the following:
3. use separate functions for Input, Calculation, and Display. |
|
10 /2 = 5 | remainder #1 is 0 | Multiply this remainder by 1. |
5 / 2 = 2 | remainder #2 is 1 | Multiply this remainder by 10. |
2 / 2 = 1 | remainder #3 is 0 | Multiply this remainder by 100. |
1 / 2 = 0 | remainder #3 is 1 | Multiply this remainder by 1000. |