Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcjęDyskusje Q&A
I cant believe that output!
4 głosów
4 odpowiedziLatest challenge [secret]
2 głosów
1 Odpowiedź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
Solution
0 Votes
help pls
1 Votes
C? C++? C#? Horses for courses?
0 Votes
heart issues
1 Votes
Array
1 Votes
Sololearn logo
0 Votes
Download
1 Votes