|
|
@ -91,13 +91,16 @@ void SendMoney() |
|
|
|
printf("try with a different amount? [y]: Yes, any Other key: exit:"); |
|
|
|
|
|
|
|
scanf("%s", &tryDifferentAmount); |
|
|
|
|
|
|
|
while ((tryDifferentAmount == 'Y' || tryDifferentAmount == 'y') && counter <= 2) |
|
|
|
if (tryDifferentAmount == 'Y' || tryDifferentAmount == 'y') |
|
|
|
{ |
|
|
|
|
|
|
|
printf("Bitte geben Sie einen Gueltigen Amount:\n"); |
|
|
|
scanf("%d", &amountToSend); |
|
|
|
counter++; |
|
|
|
SendMoney(); |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
printf("Programm wird beendet"); |
|
|
|
exit(0); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|