Correct the errors and show the output of following the program: | Sololearn: Learn to code for FREE!

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; }

4/10/2021 12:57:17 PM

pro.shahad *

3 Answers

New Answer

+1

You declared count as a character change it to 'int'