0

So, my teacher gave me this assignment to write a program to enter a four digit number Andries each digit of the number in a separate line. For example, if a user inputs 1234, the output should be:
1
2
3
4
I'm stuck. Please help ASAP. We have learnt Buffered Reader, but not the scanner method.

6
Contributors
5
Replies
29
Views
1 Year
Discussion Span
Last Post by Lucaci Andrew
0

my hourly rate is $150 with a minimum of 40 hours, payable in advance.
After payment I'll get on it ASAP.

0

Ok. You need to think about this logically.

You must first read the users input.
Then split the string of numbers into individul digits - which are then stored in some sort of collection.
You then need to iterate through the collection and print out each element.

We don't get the grades for writing the code for you! But use those instructions as a guide for your research and learning.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.