dhaba

Document Sample
dhaba
Description

a program to make normal restaurant billing

Shared by: mksingh1990
Categories
Stats
views:
10
posted:
10/26/2009
language:
English
pages:
3
#include #include samosa(); vada(); chkn(); frd(); void menu(); int q,total,t,sum=0; void main() { clrscr(); printf("\t\t\****Welocme to Mukesh Dhaba*******"); cont: int n; sum=sum+total; printf("\npress 0 for menu else item code"); scanf("%d",&n); if(n==0) { menu(); goto cont; } if(n==1) { samosa(); printf("to cont press 0 else any other key to exit"); scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } if(n==2) { vada(); printf("to cont press 0 else any other key to exit"); scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } if(n==3) { chkn(); printf("to cont press 0 else any other key to exit");



scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } if(n==4) { frd(); printf("to cont press 0 else any other key to exit"); scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } exit: sum=sum+total; printf("\t********Than Q*************"); printf("\n\t\t\t\t\t\t\t total=%d",sum); getch(); } void menu() { printf("1:samosa \n2:vada \n3:chicken biryani \n4:fried rice"); } samosa() { printf("samosa::enter quantity"); scanf("%d",&q); total=q*10; return total; } vada() { printf("vada::enter quantity"); scanf("%d",&q); total=q*8; return total; } chkn()



{ printf("chicken biryani::enter quantity"); scanf("%d",&q); total=q*40; return total; } frd() { printf("fried rice::enter quantity"); scanf("%d",&q); total=q*20; return total; }




Share This Document


Related docs
Other docs by mksingh1990
dhaba
Views: 10  |  Downloads: 0
by registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!