Program to find the fibonacci sequence c plus

This is pretty simple program that takes in the number of terms num1 in the fibonacci series (less than 25) as a screen input from the user. It then computes the fibonacci series and prints it out using the 'cout' command.

This is pretty simple program that takes in the number of terms num1 in the fibonacci series (less than 25) as a screen input from the user. It then computes the fibonacci series and prints it out using the 'cout' command.

## Program for fibonacci sequence c plus

#include <iostream>
#include <conio.h>
using namespace std;
int main(){
int a,b,x,y,num1,ct;
a=0;
b=1;
cout << "Enter the number of terms (less than 25) : "<<endl;
cin>>num1;
cout<<a<< endl;
cout<<b<<endl;
for(ct=1;ct<=num1-2;ct++){
x=a+b;
cout<<x<<endl;
y=a;
a=b;
b=x;
}
}

## Here is the output below image:

 fibonacii series output
Thank you for reading this post. Happy programming!

Name

ltr
item
MindxMaster: Program to find the fibonacci sequence c plus
Program to find the fibonacci sequence c plus
This is pretty simple program that takes in the number of terms num1 in the fibonacci series (less than 25) as a screen input from the user. It then computes the fibonacci series and prints it out using the 'cout' command.
https://1.bp.blogspot.com/-eefIKbVwOy4/VsRooLS2IeI/AAAAAAAAAJQ/jnENM62Dg3Q/s1600/faconi.jpg
https://1.bp.blogspot.com/-eefIKbVwOy4/VsRooLS2IeI/AAAAAAAAAJQ/jnENM62Dg3Q/s72-c/faconi.jpg
MindxMaster
http://www.mindxmaster.com/2016/02/best-program-to-compute-fibonacci.html
http://www.mindxmaster.com/
http://www.mindxmaster.com/
http://www.mindxmaster.com/2016/02/best-program-to-compute-fibonacci.html
true
5332415103371288268
UTF-8