Discussions Q&R
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 RéponsesWhat will be the output???
2 Votes
7 RéponsesWhat is c++ ?
2 Votes
4 RéponsesSee description plz
-3 Votes
5 RéponsesChallenge!
4 Votes
5 RéponsesHtml question
1 Vote
7 RéponsesHacking
-4 Votes
5 RéponsesPYTHON caculator
2 Votes
3 RéponsesAujourd'hui en vedette
What's wrong in my code?
4 Votes
App Development
1 Votes
HTML
1 Votes
GUI-Based Python code in Webpage
2 Votes
Introduction of html
0 Votes
CSS or Tailwind
1 Votes
Web Developer Job?
1 Votes