Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
break;
1 Stimme
3 AntwortenBreak;
0 Stimmen
2 AntwortenForgetting a break;
0 Stimmen
1 Antwortwhat is break; in java?
1 Stimme
6 AntwortenWhen a break breaks?
1 Stimme
4 AntwortenC language question
0 Stimmen
4 AntwortenIn 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 Stimmen
8 AntwortenHeute heiß
Questions
1 Votes
Why it's giving error
3 Votes
Questions
0 Votes
xampp
0 Votes
Collection
0 Votes
Code Playground
0 Votes
How to solve this
0 Votes