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