Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include <iostream>
- using namespace std;
- int Fact(int N) {
- if (N == 1) {
- return 1;
- }
- return N * Fact(N - 1);
- }
- int main() {
- setlocale(LC_ALL, "ru");
- cout << Fact(6) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement