//Write a program to print even number less then or equal to 50 using do while #include<stdio.h> #include<conio.h> void main() { int x=2; clrscr(); do { printf("%d",x);//Print number 2, 4, 6, 8, ...... x=x+2; } while(x<=50);//Print the number then check the condition getch(); }
Comments
Post a Comment