Обсуждения
guys this code I wrote passed all the unittest specifications in an oop lab. but they told me that I failed a hidden test. that my code can still be improved upon. I've tried my best but I don't know how to improve the code again. please give me ideas. am I using WET in any block. any unnecessary repetitions or redundancy? this is the code below:
http://www.sololearn.com/app/python/playground/cG5UEvIEkuHd/
0 голосов
4 ответов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 ответовАктуальное сегодня
Control Flow
2 Votes
How to use the get() method
2 Votes
Game Dev Path
1 Votes
So this what I'm trying to solve
2 Votes
How to get account back?
1 Votes
PHP Tutorial Idea
1 Votes
Problem whit Javascript
1 Votes