By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,503 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

Reading Input

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "Joe" <an*******@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.