New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
In 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
Quick question in python.
1 Votes
What’s wrong with this???
0 Votes
What's wrong with these codes?
1 Votes
What can i do with bits
2 Votes
Arrays
0 Votes
Is it A Bug or A Feature?
0 Votes
Guys, it’s about streak
0 Votes
Was there a Go course?
0 Votes
Bulk email sender?
0 Votes