|
@ -17,10 +17,17 @@ void slotMachine(){ |
|
|
int getBalance(){ |
|
|
int getBalance(){ |
|
|
int balance; |
|
|
int balance; |
|
|
printf("Guthaben einwerfen: "); |
|
|
printf("Guthaben einwerfen: "); |
|
|
scanf_s("%d", &balance); |
|
|
|
|
|
|
|
|
balance = userInput(); |
|
|
|
|
|
printf("Dein Guthaben: %d", balance); |
|
|
return balance; |
|
|
return balance; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int userInput(){ |
|
|
|
|
|
int input; |
|
|
|
|
|
scanf_s("%d", &input); |
|
|
|
|
|
return input; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void welcomeMessage(){ |
|
|
void welcomeMessage(){ |
|
|
printf("Herzlich Willkommen zur \n\n" |
|
|
printf("Herzlich Willkommen zur \n\n" |
|
|
" _ _ _ _ \n" |
|
|
" _ _ _ _ \n" |
|
|