Can't use arrays. Even if we were I wouldn't know how. I am in an intro class. I only know to a certain point.
Can I ask why you didn't think my code produced what it should.
um, if you...
Type: Posts; User: CSUTD
Can't use arrays. Even if we were I wouldn't know how. I am in an intro class. I only know to a certain point.
Can I ask why you didn't think my code produced what it should.
um, if you...
This is my output:
Enter some numbers: 2
You entered numbers 2.
Your total are 2
Enter some numbers: 7
You entered numbers 7.
Is there a simpler way to print everything out on two lines?
Example:
You entered numbers 2,7, 3, and 0.
Your totals are 2, 9, and 12.
{
Scanner keyboard = new Scanner...
I need a little help.
Not sure where to go from here.
public static void main(String[] args)
{
Scanner keyboard = new Scanner (System.in);