Number Series program 2-C programming

Spread the love

Number Series program 2

In this program, we will see the Number Series program in C programming language. Please look into the program.

Number Series 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;
    }
}

Number Series Programs in C programmming

Star Pattern Programs in C programmming

Number Pattern Programs in C programmming

Alphabet Pattern Programs in C programmming


Spread the love

Leave a Comment