Number Series program 1-C programming
In this program, we will see the Number Series program in C programming language. Please look into the program.
1 2 3 6 9 18 27 54..
The C program for the Number Series program is as follows:
#include <stdio.h> int mxin() { int x=1,y=2,i,n=10; printf("%d %d ",x, y); for(i=3;i<=n;i++) { if(i%2==1) { x=x*3; printf("%d ",x); } else { y=y*3; printf("%d ",y); } } getch(); return 0; }