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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top