Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
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; }
1 Réponse
+ 1
You declared count as a character change it to 'int'