//Write a program to print the first 15 term of given series 2,6,10,14,...... #include<stdio.h> #include<conio.h> void main() { int i,x=2;//x=2 from above question clrscr(); for(i=1;i<=15;i++) { printf("%d",x); x = x + 4;//6-2=4, 10-6=4, 14-10=4, ...... } getch(); }
Comments
Post a Comment