+ 1

Where is the error?

include <iostream> using namespace std; int main() int numbuh=2; while (numbuh<100){cout<<numbuh<<endl; numbuh = numbuh + 10;} return 0;

6th Feb 2018, 10:26 AM
Dokko Krash
Dokko Krash - avatar
2 ответов
+ 4
#include <iostream> using namespace std; int main() { int numbuh = 2; while (numbuh < 100) { cout << numbuh << endl; numbuh = numbuh + 10; } return 0; }
6th Feb 2018, 10:29 AM
deFault
+ 1
oh right. curly brackets at the begining and the end. thank you
6th Feb 2018, 10:35 AM
Dokko Krash
Dokko Krash - avatar