Dyskusje Q&A
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 głosów
8 odpowiedziPopularne dzisiaj
Remove
0 Votes
I need help to solve this
0 Votes
Engineer Cloud
0 Votes
Project
0 Votes
Lua?
1 Votes
How to add comment in python?
0 Votes
How do we code calculator
0 Votes