i want to use do..while loop to write a program about n positive number and the program will terminate when there were negetive | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

i want to use do..while loop to write a program about n positive number and the program will terminate when there were negetive

give me some idea or some coding using c++

24th Jan 2017, 10:56 AM
nsazw
nsazw - avatar
1 Respuesta
+ 1
do { \\code }while (num>=0) if (num <0){ \\Some other code }
24th Jan 2017, 11:31 AM
Aaron
Aaron - avatar