No products in the cart.

How to enter fibonacci series for …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

How to enter fibonacci series for n value of number
  • 2 answers

Sanidhya Jadaun? 5 years, 9 months ago

Condition : for(int i=2;i<n;i++)..{ n3=n1+n2;...cout<<n3;...n1=n2;...n2=n3;....}

Sanidhya Jadaun? 5 years, 9 months ago

First take the value of n numbers from the user then assign the value of n1=0,n2=1, then print n1 & n2 in the order .Then take the below condition......................................for(int i=2 ; i<n ; i++)....{ n3=n1+n2;......cout<<n3;......n1=n2;......n2= n3;...}...................return 0; . . . . . .. . . . ..
http://mycbseguide.com/examin8/

Related Questions

Write a program for swapping two numbers
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
Define packages
  • 0 answers
What is alu
  • 1 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