You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
499 B

  1. #include <stdio.h>
  2. #include "funktionen.h"
  3. void welcome() {
  4. char x[15];
  5. printf("Hallo! Wie heisst du?\n");
  6. scanf("%s", &x);
  7. printf("\nSch�ner Name, %s!\n\n", x);
  8. }
  9. int choose_program() {
  10. int i;
  11. printf("Welches der folgenden Programme moechtest du starten?\n1. Rechner.exe\n2. Gleichungen.exe\n3. TicTacToe.exe\n\n");
  12. scanf("%d", &i);
  13. return i;
  14. }
  15. int addThreeNumbers(int a, int b, int c) {
  16. return a + b + c;
  17. }
  18. int multiply(int h, int g) {
  19. return h * g;
  20. }