help with simple prog

how do i add the number input by the user
to the sum.

do
{
cout<< "Enter a grade, or -1 to stop: ";
cin >> grade;

}
while( grade != -1);
Last edited on
Do your own homework, or at least make an attempt at it.

http://www.cplusplus.com/forum/beginner/1/#msg6680

Thank you for playing.
Topic archived. No new replies allowed.