Hi. I am practicing how to write information. However, I don't know why it's not working, when I chose the selection 2,3 and 4. Please help.
Code:#include <stdio.h> #define Quit 5 int get_menu_choice(); void print_report_1(); void check_out_your_balance(); void Talking_with_the_customer_service(); unsigned long long b; unsigned int a; int main() { printf("Welcome\n"); printf("Please choose the options below.\n"); printf("Here are the options you can choose from the list:\n"); int choice=0; choice=get_menu_choice(); while(choice!=5) { if (choice==1) printf("Please enter your ten digit phone number\n"); scanf("%d", &a); printf("How about successful. Thanks for shopping\n"); {if (choice==2) print_report_1();} {if (choice==3) check_out_your_balance();} {if (choice==4) Talking_with_the_customer_service();} } printf("You chose to quite. Thanks for shopping. \n"); return 0; } int get_menu_choice() { int selection=0; do{ printf("\n"); printf("1-Renew your phone number\n"); printf("2-Pay with your debit or credit card\n"); printf("3-Check out your balance\n"); printf("4-Talking with the customer service\n"); printf("5-Quit\n"); printf("\n"); printf("Please enter a selection:"); scanf("%d", &selection); } while(selection<1||selection>5); return selection; } void print_report_1() { printf("Please enter your debit card or cedit number"); scanf("%d", &b); printf("You entered %d", b); printf("How about successful. Thanks for shopping."); return; } void check_out_your_balance() { printf("\n Account Balance"); printf("\nDate\t\tBalance"); printf("\n====\t======="); printf("\n06/13/2014\t$52.5"); printf("\n07/14/2014\t$38.5"); printf("\n08/10/2014\t$56.1"); printf("\n09/15/2014\tUNPAID"); printf("\n__________\t_______"); return; } void Talking_with_the_customer_service() { printf("Our working hour is 8a.m to 6p.m"); printf("Please leave your phone number and we will contact you as well"); scanf("%d", &a); printf("Thank you."); }