GUYS which&where should i put the EXIT code in??Pls help..=(...Thx in advance...
Code:#include<stdio.h> void menu(); void submenu(); main() { menu(); return 0; } void menu() { char opt; do { printf ("*******************WELCOME TO MAS AIRLINE RESERVATION SYSTEM*******************\n"); printf ("\nP ==> Ticket Purchase\n"); printf ("\nV ==> Viewing Seating Arrangement\n"); printf ("\nQ ==> Quit the System\n"); printf ("\nPlease Insert Your Choice : "); scanf ("%s",&opt); }while ((opt!='p') && (opt!='v') && (opt!='q')); if(opt=='p'||opt=='P') { submenu(); } } void submenu() { char slct; do { printf ("\n**********TICKET PURCHASING MODULE**********"); printf ("\nB ==> Business Class Ticket Purchase\n"); printf ("\nE ==> Economy Class Ticket Purchase\n"); printf ("\nM ==> Return to Main Menu\n"); scanf ("%s",&slct); }while ((slct!='P')); }