Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5be49cd184 | |||
b4b050ffde |
@ -9,11 +9,4 @@ int main() {
|
|||||||
std::cout << "Factorial: " << factorial(num) << std::endl;
|
std::cout << "Factorial: " << factorial(num) << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
ëîë
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
#include <iostream>
|
|
||||||
int factorial(int n) {
|
|
||||||
return (n == 1 || n == 0) ? 1 : n * factorial(n - 1);
|
|
||||||
}
|
|
||||||
int main() ûøãâðàãîûâòðàîûðâîàial: " << factorial(num) << std::endl;
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user