verbesserung
This commit is contained in:
@@ -30,11 +30,7 @@ long hoch3(int n) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int fakultaet(int x) {
|
int fakultaet(int x) {
|
||||||
if(x > 1) {
|
return x > 1 ? x * fakultaet(x-1) : 1;
|
||||||
return x * fakultaet(x-1);
|
|
||||||
}else {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user