Browse Source

blackjack guthaben einwerfen

remotes/origin/stefan
fdai7472 11 months ago
parent
commit
f3c289167b
  1. 15
      src/main/c/Stefan/blackjack.c
  2. 1
      src/main/c/Stefan/blackjack.h

15
src/main/c/Stefan/blackjack.c

@ -5,6 +5,17 @@
int blackjack(){
printf("Blackjack \n");
printf("Welcome to Blackjack \n");
int balance = getBalanceBJ();
return 0;
}
}
int getBalanceBJ(){
int balance = 0;
printf("Guthaben einwerfen: ");
scanf("%d", &balance);
printf("Dein Guthaben: %d", balance);
return balance;
}

1
src/main/c/Stefan/blackjack.h

@ -3,5 +3,6 @@
int blackjack();
int getBalanceBJ();
#endif // BLACKJACK_H
Loading…
Cancel
Save