Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
fibonacci serise.

fibonacci serise.

Ratings: (0)|Views: 23 |Likes:
Published by Vivek2544
fibonacci Series
fibonacci Series

More info:

Categories:Types, School Work
Published by: Vivek2544 on Aug 26, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

10/12/2012

pdf

text

original

 
write a program for fibonacci serise.#include<iostream.h>#include<conio.h>class FIB{int a,c,b,n,e,i;public:void getdata();void logic();};void FIB::getdata(){cout<<"Enter no. of terms you want:";cin>>n;}void FIB:: logic(){a=0,b=1;cout<<a;cout<<b;for(i=1;i<=n;i++){c=a+b;cout<<"\n"<<c<<endl;a=b;b=c;}}void main(){clrscr();FIB f;f.getdata();f.logic();getch();}OUTPUT:-Enter no. of terms you want: 50112358Q.15.W. A. P. for switch case using addition, subtraction, multiplication,division.#include<iostream.h>#include<conio.h>void main(){int a,b,operation;clrscr();cout<<"Enter the two no.";cin>>a>>b;

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->