Question: (Digits of an Integer) Write a program that inputs a five-digit integer, separates the integer into its individual digits and prints the digits separated from

(Digits of an Integer) Write a program that inputs a five-digit integer, separates the integer into its individual digits and prints the digits separated from one another by three spaces each in reverse order.

[Hint:Use the integer division and modulus operators.]

For example, if the user types in 42339, the program should print 9 3 3 2 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!