Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Program_2
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> using namespace std; int fibonacci(int n) { if((n==1)||(n==0)) { return(n); } else { return(fibonacci(n-1)+fibonacci(n-2)); } } int main() { int n=0,i=0; std::cout<<"Enter the number:"; std::cin>>n; std::cout<<"\n Fibonacci Series is as follows\n"; std::cout<<n; while(i<n) { cout<<" "<<fibonacci(i); i++; } return 0; }
run
|
edit
|
history
|
help
0
VS struct_member_name
#27
print adapted struct
VC++
make_integer_sequence
ordinary queue
xxx
MSVC lambda bug
timeConversion
#30.2