0
Does somebody knows the combination of While loop and If Statement?
It goes like: Enter a number: (6) The number is even 6 5 4 3 2 1 0 Enter a number: (7) The number is odd 7 6 5 4 3 2 1 0 And it continues...
8 ответов
0
Use while inside if and else.
Give it a try it's not that complicated.
Come back with your code if you need some assistance and corrections.
0
Avinesh Thank you
0
Avinesh That's my code but I don't know where to add the (x--;)
0
strykds I appreciate your efforts.
I told you to put while inside if and else but anyways nice try.
Hope this helps-
https://code.sololearn.com/c0pIzA8RJe36/?ref=app
0
Avinesh Thank youuuuu
0
اسلام واعلیکم
0
https://code.sololearn.com/WfzkpwCcIDrf/?ref=app
https://code.sololearn.com/WmjcZfBxaJ67/?ref=app
https://code.sololearn.com/c9GffKyDSuv1/?ref=app
https://code.sololearn.com/WiInr7d8ZZUB/?ref=app
https://code.sololearn.com/WGI4oCdFbiR1/?ref=app
https://code.sololearn.com/cg4Ep7h1n0h1/?ref=app
https://code.sololearn.com/W27J8Z08c2c7/?ref=app
https://code.sololearn.com/cnW4xqiz2ScU/?ref=app
https://code.sololearn.com/Wwqm888S5qhB/?ref=app
https://code.sololearn.com/c2joQSQ8U5dZ/?ref=app