Reading Input

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Can some one tell me how to insert some blank spaces into
a integer or string input variable. For example;

* A user is asked to enter a 5 digit number
* After the use enters the number eg. 12345
* I manipulate the input number and insert a blank space
between them
* The printed output will look like this; 1 2 3 4 5


Thanks,
Joe
 
* "Joe said:
Can some one tell me how to insert some blank spaces into
a integer or string input variable. For example;

* A user is asked to enter a 5 digit number
* After the use enters the number eg. 12345
* I manipulate the input number and insert a blank space
between them
* The printed output will look like this; 1 2 3 4 5

Have a look at the 'For...To' loop and the 'StringBuilder' class.
 
Back
Top