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!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 1
do { \\code }while (num>=0) if (num <0){ \\Some other code }
24th Jan 2017, 11:31 AM
Aaron
Aaron - avatar