|
|
@ -19,3 +19,33 @@ float getAmount(float amountToSend) |
|
|
|
|
|
|
|
return amountToSend; |
|
|
|
} |
|
|
|
// hier die wird die Kontonummer eingegeben und getestet |
|
|
|
void getReceiverAccountNumber() |
|
|
|
{ |
|
|
|
|
|
|
|
int accountNumber; |
|
|
|
|
|
|
|
printf("Enter The account in Which you want to transfer the money:"); |
|
|
|
scanf("%d", &accountNumber); |
|
|
|
int counter = 0; |
|
|
|
while (checkAccount(accountNumber) == false && counter <= 2) |
|
|
|
{ |
|
|
|
|
|
|
|
printf("Bitte geben Sie einen Gueltigen Kontonummer:\n"); |
|
|
|
scanf("%d", &accountNumber); |
|
|
|
counter++; |
|
|
|
} |
|
|
|
|
|
|
|
if (checkAccount(accountNumber) == false) |
|
|
|
{ |
|
|
|
printf("Konto ist ungultig\n"); |
|
|
|
|
|
|
|
printf("Programm wird beendet"); |
|
|
|
exit(0); |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
printf("KontoNummer Gültig"); |
|
|
|
} |
|
|
|
} |