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!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 1
do { \\code }while (num>=0) if (num <0){ \\Some other code }
24th Jan 2017, 11:31 AM
Aaron
Aaron - avatar