Compare commits
No commits in common. "main" and "тест" have entirely different histories.
@ -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>
|
||||||
#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