more
[lectures/latex.git] / computational_physics / fak2.c
diff --git a/computational_physics/fak2.c b/computational_physics/fak2.c
new file mode 100644 (file)
index 0000000..b749ccf
--- /dev/null
@@ -0,0 +1,8 @@
+int fak(n) {
+    int help=1;
+    while(n>1) {
+      help=help*n;
+      n=n-1;
+    }
+return help;
+}