Daily challenge using integer division and remainder | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Daily challenge using integer division and remainder

Write an app that input one number consisting of five digits from the user, separates the number into its individual digits and displays the digit separated from one another by three spaces each. For example, if the user types in the number 42339, the app should display: 4 2 3 3 9 Assume that the user enters the correct number of digits. What hapends when you execute the app and type a number with fewer than five digits?

29th Aug 2017, 12:36 PM
Samson Yap
Samson Yap - avatar
1 Answer
29th Aug 2017, 2:48 PM
Shamima Yasmin
Shamima Yasmin - avatar