New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
I cant believe that output!
4 Votes
4 AnswersLatest challenge [secret]
2 Votes
1 AnswerIn 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 Votes
8 AnswersHot today
Help me please)
1 Votes
Question
2 Votes
\n
0 Votes
Disabled close button?
0 Votes
Commenting on lessons
0 Votes
What’s wrong
0 Votes
Video and audio type
0 Votes