Q&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
Can I ask question
2 Votes
Any tips for web developer
4 Votes
Que
0 Votes
No GitHub?????
2 Votes
JS Game?
0 Votes
Installing modules in SL env py
1 Votes
Medal
0 Votes
DSA courses
0 Votes