Q&A Discussies
Can you give me solution?
0 Stemmen
2 Antwoorden[solved]What's wrong in this?
0 Stemmen
2 AntwoordenSubmitting form ERROR!!
0 Stemmen
3 AntwoordenFind the bug...
3 Stemmen
1 Antwoord🛑HELP PLEASE🛑 I don’t know what to do
-2 Stemmen
1 AntwoordJOptionPane
-3 Stemmen
1 AntwoordShow command doesn't wirk
0 Stemmen
1 Antwoord[solved]What's wrong with this ?
0 Stemmen
3 Antwoordenwhy 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 Stemmen
8 AntwoordenHow should I fix my C++ Script?
2 Stemmen
2 AntwoordenPopulair vandaag
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Salut tout le monde
2 Votes
Pointers in c#
1 Votes
Please click me
0 Votes