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 ответов
+ 1
You declared count as a character change it to 'int'