No products in the cart.

write a program to print a …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

write a program to print a fabonacci series 0,1,1,2,2,3,5,8
  • 1 answers

Tarun Singh Yadav 6 years, 8 months ago

#include<iostream.h> #include<conio.h> void main() { int first=-1,second=1,feb,n; cout<<"Enter the no. of term:"; cin>>n; for(int i=0;i<=n;i++) { feb=first+second; cout<<feb; first=second; second=feb; } getch(); }
http://mycbseguide.com/examin8/

Related Questions

What is alu
  • 1 answers
Define packages
  • 0 answers
Write a program for swapping two numbers
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App