0
What is the mistake. I did all the things but error coming.
include <iostream> using namespace std; int main() { int a = 0; do { cout << a << endl; a++; } while(a < 11); return 0; { int a = 1; do { cout << a << endl; a++; } while(a < 11); return 0; }
4 Réponses
+ 1
add an } after the return statement.
0
Check your curly braces matching. You have 4 opening ('{') and just 3 closing ('}').
0
You have to add extra } after the code. Also the code after return 0 is unreachable.
0
thanks