New course! Every coder should learn Generative AI!
Try a free lesson+ 42
GOT IT
1.for( i=0; -i<n;i--)
2. for(i=0;i<n;n--)
3. DONT KNOW :-(..... thinking HARD
EDIT:- 3. for(i=0;i+n;i--)
+ 18
I like this quizz.
i just found one solution,
@Meharban is great cause you can found it fast.
@Ace do you have other quizz like this?
+ 7
-20 <0 so loop will not run
+ 7
I don't consider this ,but I found it accidentally on sololearn's code playground. I wished to replace < sign , I accidentally replace it with +. It works But i think its incorrect ??
+ 6
no@ Mario
+ 6
*blush* @Agus
I did get the last one accidentally
+ 6
@Ace Well said..
👌
+ 5
Thanks @Ace @Serena
+ 5
WHAT?? How come thats correct?...
I edited my first post
+ 5
Please tell me hows that correct. That returns error in java.
+ 5
someone explain me please
+ 5
woww
+ 5
Didnt find it :-(
+ 5
Have to go. Will try that later
+ 5
Trending #1
+ 4
so much likes.Thanks @Ace
+ 4
@Alejandro
i=0 i--=> i=-1 -i=1 1<20
i=-1 i--=>i=-2 -i=2 2<20
i=-2 i--=> i= -3 -i=3 3<20
..........
i=-19 i--=> i= -20 -i=20 20<20(False)
+ 4
Anytime bro
+ 3
@Alejandro -0 is acceptable in such cases:-
int x=0;
Then use -x.Its same as algebra, say,you have an equation, it might have -x in it, but still x=0 is a solution for it.
0 (i) gets decremented to -1 . -(-1) = 1 . So on......
+ 3
THIS IS A REAL CHALLENGE!
Congrats @Ace, maybe we can rewrite your challenges in py
=)