Math, asked by aditya45676, 10 months ago

Write a program to display the following series upto n terms:
0,1,3,8...........................

Answers

Answered by Anonymous
3

Answer:

#include <stdio.h>

int main()

{

   int i, n, t1 = 0, t2 = 1, nextTerm;

   printf("Enter the number of terms: ");

   scanf("%d", &n);

   printf("Fibonacci Series: ");

   for (i = 1; i <= n; ++i)

   {

       printf("%d, ", t1);

       nextTerm = t1 + t2;

       t1 = t2;

       t2 = nextTerm;

   }

   return 0;

}

Step-by-step explanation:

Answered by devilwalker
1

Answer:

seems the program is about subtraction of the square of the number by 1. Refer the attachment for explanation practically.

Attachments:
Similar questions