Develop a C program to print 10 to 1 numbers using do...while loop
Code
#include <stdio.h>int main(){int n;printf("\n"); //for new line// Do While Loopn = 10; // Initializedo{printf("%d\n", n);n--; // Decrement} while (n >= 1); // Conditionreturn 0;}
Output
0 Comments
Post a Comment