#include<iostream.h>
int
Faku(int n);
void
main( )
{
int zahl=0;
while(true)
{
cout<<"Von welcher Zahl moechten Sie die Fakultaet bilden?"<<endl
<<"\"-1\" beendet das Programm:\\> ";
cin>>zahl;
if(-1= =zahl) break;
cout<<"Die Fakultaet von "<<zahl<<" ist "<<Faku(zahl)<<"."<<endl;
}
}
int
Faku(int n)
{
if(n= =0)
{
return 1;
}
else
{
n=n*Faku(n-1);
return n;
}
}