C - Loops
Identify the error in this
do-while loop code snippet:int x = 5;
do {
printf("%d", x);
x--;
} while x > 0;do-while loop code snippet:int x = 5;
do {
printf("%d", x);
x--;
} while x > 0;while condition must be enclosed in parentheses, like while (x > 0);.while x > 0; missing parentheses, causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions