Results 1 to 2 of 2
Thread: What code is this?
- 01-23-2011, 01:41 PM #1Member
- Join Date
- Jan 2011
- Rep Power
What code is this?
Hello I had a problem about this program that my stupid Teacher give me. The statement says that it includes looping. The program output is this :
Enter a value: 2
Enter a value: 1
Enter a value: 0
The sum is 3
When the input is 0, it will add the non-zero digits, and if the value is not a zero digit, it will repeat the statement to input another value...This program includes LOOPING statement. like "Enter a value" will repeat if the input value is not a 0....I wish someone will post a code for this program.....BTW, the program class is not a BUFFEREDREADER or JOPTIONPANE. The program class is SCANNER....Pls. someone help me....this program is really important, otherwise Im going to fail my subject in JAVA programming.....:confused:
Duplicate of another thread and so this thread is closed.
- By vahshir in forum New To JavaReplies: 3Last Post: 08-30-2010, 04:21 AM
- By sniffer139 in forum AWT / SwingReplies: 1Last Post: 03-04-2010, 11:19 AM
- By coldvoice05 in forum New To JavaReplies: 1Last Post: 08-12-2009, 11:14 AM
- By coldvoice05 in forum Advanced JavaReplies: 1Last Post: 08-09-2009, 01:21 PM
- By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM