summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/einfuehrung2/mw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/einfuehrung2/mw.cpp')
-rw-r--r--Master/texmf-dist/doc/latex/einfuehrung2/mw.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/einfuehrung2/mw.cpp b/Master/texmf-dist/doc/latex/einfuehrung2/mw.cpp
new file mode 100644
index 00000000000..0e8d36053cd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/einfuehrung2/mw.cpp
@@ -0,0 +1,12 @@
+#include <stdio.h>
+long double x, y;
+int main(void){
+ printf("Mittelwertberechnung\n");
+ printf("Erster Wert: ");
+ scanf("%Lf", &x);
+ printf("\nZweiter Wert: ");
+ scanf("%Lf", &y);
+ printf("\nDer Mittelwert ist
+ %Lf et de %Lf est %Lf.\n",
+ x, y, (x+y)/2);
+ return 0; }