Browse Source

refactoring sendMoney methode

remotes/origin/feature/send-money
fdai6618 2 years ago
parent
commit
5fe8d5d2fd
  1. BIN
      src/a.exe
  2. 13
      src/sendmoney.c
  3. BIN
      src/sendmoney.exe

BIN
src/a.exe

13
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);
}
}
}

BIN
src/sendmoney.exe

Loading…
Cancel
Save