write a program code Print Fibonacci series Using proper function in C++
Header File include#include<stdio.h>
Header File include#include<conio.h>
Header File include#include<iostream.h>
class fibo
{
private :
int
n,a,b,t;
public :
fibo(int
no1)
{
n=no1;
a=0,b=1,t=0;
}
void
fiboc()
{
int
i=1;
cout<<"\nFibonacci
Series :"; ___(Don't Missing Syntax required).
while(i<=n)
{
a=b;
b=t;
t=a+b;
cout<<"
"<<t; ___(Don't Missing Syntax required).
i++;
}
}
};
void main()
{
int no1;
clrscr();
cout<<"Enter
number up to :"; ___(Don't Missing Syntax required).
cin>>no1;
fibo s1(no1);
s1.fiboc();
getch();
}
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Subscribe to:
Post Comments
(
Atom
)
This was a shocking post. It has some look at here fundamental data on this subject. aktu result
ReplyDeleteTop 10 best slots casinos for 2021 - SOL.EU
ReplyDeleteBest Slots Casino: Best https://sol.edu.kg/ Real poormansguidetocasinogambling Money 바카라 사이트 Slots Sites 2021 · Red Dog Casino: Best Overall Slots Casino For USA Players · Ignition Casino: Best https://septcasino.com/review/merit-casino/ Casino งานออนไลน์ For Roulette