Computer Science, asked by mktomar01, 5 months ago

Write a program to print the following series having n number of elements. 0, 1, 1, 2, 3, 5, 8, 13 .......... ..... n, where n will be entered user.​

Answers

Answered by ayushramola789
3

Answer:

paper de rha h kon si class mai h ?

Answered by nidaeamann
2

Explanation:

The given scenario can be written in several programming language. The below program will be written in C language which is one of the basic computer programming language

#include<stdio.h>

void main void

{

Int series = []

int prev_series = 0

int children

Int weight_adult

Int weight_child

Int weight_limit

printf("Enter the last number of series");

scanf("%d", &number);

while (series < number)

{

     series = prev_series + series

    printf("%i", &series)

    prev_series = series

}

return

}

Similar questions