0
Correct the errors and show the output of following the program:
#include<iostream.h> void main( ) { char count = 1; int sum = 0; while ( count <= 25 ) { sum = sum + count; count = count + 2 cout << âsum is: â << sum << endl; }
3 Answers
+ 1
You declared count as a character change it to 'int'