Sesiones de PyR
break;
1 Voto
3 RespuestasBreak;
0 Votos
2 RespuestasForgetting a break;
0 Votos
1 RespuestaWhen a break breaks?
1 Voto
4 RespuestasC language question
0 Votos
4 RespuestasIn the code below the output is 2. This code is used in a challenge and I get an error when I select the answer 2. It accepts as correct the answer 1 which I believe is wrong. If you agree please thumbs up.
If you find any other errors please post them here!
#include <iostream>
using namespace std;
int main()
{
for(int i=1; i>=1; i++) {
if(i<1 || i>1){
cout << i;
break;
}
}
return 0;
}
8 Votos
8 RespuestasEn tendencia hoy
Learning Specific Code
1 Votes
Help
1 Votes
I need help
0 Votes
why wont my code work?
0 Votes
Do editors have special code
1 Votes
How to paythan ?
0 Votes
SQL
1 Votes