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

how to print digits with space?

P: 7
In my homework i need to write a function that inputs and integer between 1 and 32767 and prints it as a series of digits, each pair of which is separated by two spaces. for example 3412 should print as : 3 4 1 2.
please help.......
Mar 22 '07 #1
Share this Question
Share on Google+
3 Replies


arne
Expert 100+
P: 315
In my homework i need to write a function that inputs and integer between 1 and 32767 and prints it as a series of digits, each pair of which is separated by two spaces. for example 3412 should print as : 3 4 1 2.
please help.......
What have you done so far? Are you stuck with any specific problem?
Mar 22 '07 #2

P: 7
how can i use function 1 and 2 to write a function that inputs an integer between 1 and 32453, and prints it as a series of digits, each pair by two spaces. ex.3245 print: 3 2 4 5;
Mar 22 '07 #3

sicarie
Expert Mod 2.5K+
P: 4,677
how can i use function 1 and 2 to write a function that inputs an integer between 1 and 32453, and prints it as a series of digits, each pair by two spaces. ex.3245 print: 3 2 4 5;
Janice3 -

Please do not double-post. You have attempted to answer arne's question in a different thread - this should have been posted in the other thread (which I will merge after completing this post).

Also, our Posting Guidelines request you not post your full code, perhaps you could give an algorithm for what your code attempted?

Thanks!
Mar 22 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.