#include #include #include int hello; int balance; char command[8]; int main(void) { //printf("Command is at: %p, balance is at: %p\n", command,&balance); while (true) { printf("Command? ('q' to quit): "); scanf("%s",command); if (strcmp(command,"balance") == 0) { printf("Your balance is: %d\n",balance); } else if (strcmp(command,"deposit") == 0) { printf("Enter your deposit amount: "); int dep; scanf("%d",&dep); balance += dep; } else if (strcmp(command,"q") == 0) { printf("Bye!\n"); break; } else { printf("Invalid command. Please try again.\n"); } } }