//Write a program to print even square series upto 50 term using while looping. #include<stdio.h> #include<conio.h> void main() { int x=2; clrscr(); while(x<=100) //Multiple 35 by 2 because because upto 70 there is 35 odd numbers and 35 even numbers { printf("%d",x*x);//Eg : 2x2, 3x3, 4x4, ..... x=x+2;//Eg : 2+2=4, 4+2=6, 6+2=8, ...... } getch(); }
Comments
Post a Comment