Advertisement
borsha06

fibo_re.cpp

Sep 2nd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int recursion(int a)
  5. {
  6.     return a*a;
  7. }
  8. int main()
  9. {
  10.     int input,n,i,j,arr[100] = {0,1};
  11.     cin>>input;
  12.     n=recursion(input);
  13.     if(input*input == n)
  14.         recursion(n);
  15.     cout<<n;
  16.     return 0;
  17.  
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement