cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Debugging and Testing a Program
Debugging and Testing a Program
Jan 28, 2015 at 6:11am UTC
shamatuu
(2)
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
Jan 28, 2015 at 12:38pm UTC
Peter87
(11238)
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.