#include main() { int x, a; x = 15000; printf("Choose [1: deposit] or [2: withdrawal] or [3: balance]"); scanf("%d", &a); while (a != 0) { if (a == 1) { printf("Deposit: how much? \n"); } else if (a == 2) { printf("Withdrawal: how much? \n"); } else if (a == 3) { printf("balance --- %d yen \n", x); } else { printf("error! \n"); } printf("Choose [1: deposit] or [2: withdrawal] or [3: balance]"); scanf("%d", &a); } printf("Good Bye!\n"); }