Can we use do-while as dummy loop | SoloLearn: Learn to code for FREE!

0

Can we use do-while as dummy loop

Like int i=10; While(i); { i--; }

c

2/21/2020 11:38:26 AM

Devineni Pavan Kumar

3 Answers

New Answer

+3

int i=10; do{ i--; } while (i);

0

Why not just like this though: while(i--);

0

example int i=12; do{ i++; } while (i);