Debugging and Testing a Program

The following code fragment should find the sum of 5 numbers. There are errors in the code fragment. Provide some meaningful test cases and correct the code.

Int count = 0;
int sum = 0;
while(count < 5);
{
cin >> num;
sum += num;
count++;
}

Need help with this one too. Thanks
Put the code inside a function and try to compile it. Look at the error messages and try to fix the errors.
Topic archived. No new replies allowed.