+ 1
Does anyone know how to do this? I really need it for my activity
Write an application that inputs one number consisting of five digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces. For example the user types in the number 42339, your program should display the following: 4 2 3 3 9
2 odpowiedzi
+ 1
In which lang?
And your try?
Ref here about forum guidelines, and how to maximise getting right answers:
https://www.sololearn.com/discuss/1316935/?ref=app
https://www.sololearn.com/discuss/333866/?ref=app
Ref here to know about relevant tags:
https://code.sololearn.com/W3uiji9X28C1/?ref=app
+ 1
A simple way could be:
Take input as string.
Loop from first char to second last char and print that char plus three spaces.
After loop print last char and maybe new line.