Thread: Java help
View Single Post
Old 09-20-05, 07:35 PM   #1 (permalink)
ericcumbee
Guest
 
Posts: n/a
Java help

I am taking intro to java programming this semester. i understand what i am supposed to do on this homework assignment but i cant figure out what the minus symbol is supposed to mean

Quote:
This homework will be counted as much as the full score for a single quiz. Be serious and work carefully.Consider the following code about while loop:
int n=19;
while (n>2)
{
System.out.print(n+10);
n-=3;
}

and the objective of the assignment is
Quote:
Now do the following:
For each iteration (or loop) list the beginning value for the variable n, the (Boolean) value of the comparison (n>=2) and the output of the iteration, if any. Indicates when the loop terminates and why it does.
i just dont understand what the minus sign in n-=3; it is no where in my notes except as a armithic operator.

any one have any idea?
  Reply With Quote