diff --git a/src/a.exe b/src/a.exe index 5f854a6..4e12c43 100644 Binary files a/src/a.exe and b/src/a.exe differ diff --git a/src/sendmoney.c b/src/sendmoney.c index adfb34a..53e54e2 100644 --- a/src/sendmoney.c +++ b/src/sendmoney.c @@ -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); } } } diff --git a/src/sendmoney.exe b/src/sendmoney.exe index 6279b89..846ea13 100644 Binary files a/src/sendmoney.exe and b/src/sendmoney.exe differ