Sesiones de PyR
3d game problem
0 Votos
2 RespuestasFind the bug...
3 Votos
1 RespuestaJOptionPane
-3 Votos
1 RespuestaShow command doesn't wirk
0 Votos
1 Respuestawhy 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 Votos
8 RespuestasArreglos
0 Votos
4 RespuestasHow to use cerr in c++ ?
2 Votos
2 RespuestasEn tendencia hoy
Time up code for data revision
0 Votes
Data Analysis Course
1 Votes
Web vs python
0 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Best Python Calculator Code
1 Votes
Animation
0 Votes