Обсуждения
Thumbs up to Sololearn developers!
3 голосов
2 ответовMade A New Code
-3 голосов
1 ответ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 голосов
8 ответовАктуальное сегодня
What is problem in this code
0 Votes
playground input
0 Votes
Software developer
0 Votes
Activities on sololearn
0 Votes
How I can use div
0 Votes
Html issue
0 Votes
TIPS From Veterans
1 Votes
Playground input
0 Votes