Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Сейчас исправлю
- #include <iostream>
- #include <string>
- #include <math.h>
- using namespace std;
- int f(int a)
- {
- if (a==0 || a==1)
- {
- return 1;
- }
- else
- {
- return f(a)*f(a-1);
- }
- }
- int main()
- {
- int a;
- cout << "Enter A:";
- cin >> a;
- cout << f(a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement