0

Como ejecutar mi codigo?

hello friends I need help I am stuck in a code that consists of typing a number> = 0 and showing it by console if the number is <0 the loop must be repeated. https://code.sololearn.com/cALaVFednia5/?ref=app

15th Apr 2021, 4:01 PM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar
7 Respostas
+ 1
Yes as you used do while loop it is repeated. Any thing else you are expecting?
15th Apr 2021, 4:39 PM
Atul [Inactive]
0
" if the number is num < 0 the loop must be repeated." your code: } while (num >= 0);
15th Apr 2021, 4:44 PM
zemiak
0
what I want is that if the user types a number <0 for example -1 this will make the loop repeat itself until a number> 0 resigns
15th Apr 2021, 5:02 PM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar
0
I think so that type of facility is nor there in sololearn
15th Apr 2021, 5:53 PM
Atul [Inactive]
0
So I better do it on the computer?
15th Apr 2021, 6:03 PM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar
0
OK 👍 thanks my friend
15th Apr 2021, 6:04 PM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar
0
My pleasure. Eclipse will be better for this. I think so
16th Apr 2021, 5:37 AM
Atul [Inactive]