gollum1990
Neues Mitglied
Kenn tihr die mathematische Funktion für -- x! --, kann mir da jemand einen pseudo code funktion erstellen?
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
1! = 1
2! = 1 * 2 = 2
3! = 1 * 2 * 3 = 6
4! = 1 * 2 * 3 * 4 = 24
usw.
int Fakultaet(int x)
{
int fak = 1;
for(int i = 1; i <= x; i++)
{
fak *= i;
}
return fak;
}