Question: write a program that reads in an integer and breaks it into a sequence of individual digits with spaces between them. For example, the input

write a program that reads in an integer and breaks it into a sequence of individual digits with spaces between them. For example, the input 354687 is displayed as a " 3 5 4 6 8 7". You may assume that the input has no more than five digits and is not negative.
-use loop to solve
write a program that reads in an integer and breaks it into

Given the number 12345 : 5 is 12345%10 4 is 12345/10%10 3 is 12345/100%10 2 is 12345/1000%10 1 is 12345/10000%10

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!