Number Series program 2
In this program, we will see the Number Series program in C programming language. Please look into the program.
1 3 8 15 27 50 92 169 311
The C program for the Number Series program is as follows:
#inzlude <stdio.h> void main() { int x=1, y=3, z=4, n=10; int sum, i; printf("%d %d ",x,y,z); for(i=4; i<=n; i++) { sum = x+y+z; printf("%d ",sum); x = y; y = z; z = sum; } }