+ 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;
2 odpowiedzi
+ 4
#include <iostream>
using namespace std;
int main()
{
int numbuh = 2;
while (numbuh < 100) {
cout << numbuh << endl;
numbuh = numbuh + 10;
}
return 0;
}
+ 1
oh right. curly brackets at the begining and the end. thank you