Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5be49cd184 | |||
b4b050ffde |
@ -9,11 +9,4 @@ int main() {
|
||||
std::cout << "Factorial: " << factorial(num) << std::endl;
|
||||
return 0;
|
||||
}
|
||||
ëîë
|
||||
#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;
|
||||
}
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
Loading…
x
Reference in New Issue
Block a user