do { statement 1 statement 2 .. .. }while(condition);
#include <stdio.h> int main() { int x=1; do { printf("%d\n",x); x++; }while(x<=10); return 0; }
1
2
3
4
5
6
7
8
9
10
Write a C-program to print 1 to n values using while loop
Write a C-program to print even numbers using while loop
Write a C-program to print even number or odd number based on the n value using while loop
Write a C-program to print even number or odd number based on the n value using single while loop
Write a C-program to count the number of divisible numbers in a given range(1-100) using while loop
Write a C-program to print factorial number using while loop
do { do { statement 1 statement 2 }while(condition); statement 3 statement 4 }while(condition);
#include <stdio.h> int main() { int x=1,y; do { y=1; do { printf("*"); y++; } while(y<=3); printf("\n"); x++; }while(x<=6); return 0; }
***
***
***
***
***
***
Write a C-program to print ASCII values of A to Z
Write a C-program to print ASCII values of Numbers