0
Why it didnt output 43 ? Eventhough a++ is coded ?
6 ответов
+ 3
Can you show us your code, please?
+ 2
Do{
print a --> output: 42
a++; --> a = 43
}while(a < 5) --> 43 < 5: false --> stop the loop
do{
a++;
cout << a
}while(a < 5);
//output 43
+ 2
Thank you very much
0
Sorry I thought that you can see the part of the lesson that im asking about
0
int a = 42;
do {
cout << a << endl;
a++;
} while(a < 5);
// Outputs 42