Skip to content
Snippets Groups Projects
Commit dedc015c authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

weitere Beispiel-Programme und Tafelbild 9.10.2017, Korrektur README.md

parent a40d1bc2
Branches
No related tags found
No related merge requests found
#include <stdio.h>
int main (void)
{
int a = 7, b = 3;
if (b == 0)
printf ("Bitte nicht durch 0 dividieren!\n");
else
printf ("a / b = %d\n", a / b);
return 0;
}
#include <stdio.h>
int main (void)
{
int a = 7, b = 3;
if (b = 0)
printf ("Bitte nicht durch 0 dividieren!\n");
else
printf ("a / b = %d\n", a / b);
return 0;
}
#include <stdio.h>
int main (void)
{
double a;
printf ("Bitte eine Zahl eingeben: ");
scanf ("%lf", &a);
printf ("Ihre Antwort war: %lf\n", a);
return 0;
}
#include <stdio.h>
int main (void)
{
double a;
printf ("Bitte eine Zahl eingeben: ");
scanf ("%lf", a);
printf ("Ihre Antwort war: %lf\n", a);
return 0;
}
20171009/photo-20171009-171328.jpg

106 KiB

...@@ -17,11 +17,11 @@ Für Details siehe [common/README](https://gitlab.cvh-server.de/pgerwinski/hp/ra ...@@ -17,11 +17,11 @@ Für Details siehe [common/README](https://gitlab.cvh-server.de/pgerwinski/hp/ra
Vortragsfolien: Vortragsfolien:
--------------- ---------------
* [09.10.2017: Einführung, Einführung in C (bis Schleifen)](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20161010/hp-20171009.pdf) * [09.10.2017: Einführung, Einführung in C (bis Schleifen)](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171009/hp-20171009.pdf)
Übungsaufgaben: Übungsaufgaben:
--------------- ---------------
* [09.10.2017: Hello-World-Programme, Multiplikationstabelle, Schaltjahr ermitteln](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20161003/hp-uebung-20171009.pdf) * [09.10.2017: Hello-World-Programme, Multiplikationstabelle, Schaltjahr ermitteln](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171009/hp-uebung-20171009.pdf)
Skript: Skript:
------- -------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment