using System;
public class fakultät
{
public static void Main()
int n;
/*
Console.WriteLine("Geben sie eine natürliche Zahl ein");
n = Convert.ToInt32(Console.ReadLine());
if(n<0) {
Console.WriteLine("Die Fakultät von " +n+ " ist nicht definiert!");
} else {
Console.WriteLine(fakul(n));
}
*/
//overflow();
Console.WriteLine(gleitkommadivision(13, 3));
public static int fakul (int n) {
int ergebnis = 1;
if (n != 0) {
for(int i=1; i<=n; i++) {
ergebnis = ergebnis*i;
return ergebnis;
public static void overflow () {
int test = 1;
int schritte = 1;
while(test>0) {
test = test+schritte;
test = test - schritte;
Console.WriteLine(test);
public static double gleitkommadivision (double a, double b) {
return a/b;