Q&A Discussions
Submitting form ERROR!!
0 Votes
3 AnswersFind the bug...
3 Votes
1 AnswerJOptionPane
-3 Votes
1 AnswerShow command doesn't wirk
0 Votes
1 Answerwhy does this code output that there is an error because the else statement doesn't have a corresponding if statement?. How do i correct this?
#include <iostream>
using namespace std;
int main() {
int a;
for (int x =0; x<5;x++){
cin>>a;
if (a<1){
cout<<"a cannot be less than 1\n";
}
else if (a>10){
cout <<"a cannot be greater than 10\n";
}
}
else{
cout<<"code can run now"<<endl;
}
return 0;
}
3 Votes
8 AnswersHow to use cerr in c++ ?
2 Votes
2 AnswersHot today
Functions in python
2 Votes
How to make a playground
1 Votes
For Mobile app
0 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
Paint costs
1 Votes
Learning Python - Question
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes