have this code
if (mark > -1 && mark < 101){
marks[markIndex] = mark;
++markIndex;
}
else if (mark == -1)
break;
else
System.out.println
need to put in this line
gradeTotal = gradeTotal + mark;
but not sure where, i need it to stop adding up the total after the -1 break is entered??
everywhere ive tried so far i get a running total until i reset which i don't want.
sure its all very easy and trying to work it out at 2am is probs not my best idea!
thanks!
[s]