SlideShare a Scribd company logo
1 of 3
Pizza hut program add design by urself
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
int a,b,c,d;
system("color F2 ");
char e;
int i,j,k,l,m,n;
int AP[15]={0,400,440,365,195,295,325,525,785,450,365,440,295,199,249};
int MP[7]={0,60,65,89,25,85,100};
printf("nSelect category");
printf("n 1.Veg pizza");
printf("n 2.Nonveg pizza");
printf("n 3.Offersn");
scanf("%d",&i);
if (i==1)
{
system("cls");
printf("n 1.Deluxe Veggie");
printf("n 2.Veg extra vaganza");
printf("n 3.5 Pepper");
printf("n 4.Farm house pizza");
printf("n 5.Peppy Paneer");
printf("n 6.Cheese n cornn");
scanf("%d",&j);
system("cls");
printf("nWhich size pizza you want?");
printf("n1.regular");
printf("n2.medium");
printf("n3.largen");
scanf("%d",&k);
printf("nEnter number of pizza's - ");
scanf("%d",&l);
if (k==1){
a=0.2*AP[j];
printf("n cost of each pizza is %d",a);
b=a*l;
printf("nsum is %d",b);
system("cls");
}
if (k==2){
a=0.5*AP[j];
printf("n cost of each pizza is%d",a);
b=a*l;
printf("nsum is %d",b);
system("cls");
}
if (k==3){
a=AP[j];
printf("n cost of each pizza is%d",a);
b=a*l;
printf("nsum is %d",b);
system("cls");
}
}
else if (i==2){
printf("n 1.Chicken dominator");
printf("n 2.Peri peri chicken");
printf("n 3.Chicken tikka");
printf("n 4.Chicken golden delight");
printf("n 5.Chicken Fiesta");
printf("n 6.Chicken sausage");
scanf("%d",&j);
printf("n Which size pizza you want?");
printf("n 1.regular");
printf("n 2.medium");
printf("n 3.large");
scanf("%d",&k);
printf("n Enter number of pizza's-");
scanf("%d",&l);
if (k==1){
a=0.2*AP[j+6];
printf("n cost of each pizza is%d",a);
b=a*l;
printf("nsum is %d",b);
system("cls");
}
if (k==2){
a=0.5*AP[j+6];
printf("n cost of each pizza is%d",a);
b=a*l;
printf("nsum is %d",b);
system("cls");
}
if (k==3){
a=AP[j+6];
printf("n cost of each pizza is%d",a);
b=a*l;
printf("nsum is %d",b);
system("cls");
}
} else if (i==3){printf("n 1.Cheese n Corn + fresh veggie");
printf("n 2.Medium hand tossed pizza");
scanf("%d",&j);
switch(j)
{
case 1:{
printf("n you have selected Cheese n corn + fresh veggie");
break;}
case 2:{
printf("n you have selected Mediumhand tossed pizza");
break;
}
}
printf("n Enter number of combo pizza's-");
scanf("%d",&l);
b=AP[j+12]*l;
printf("ncost of each combo is %d",AP[j+12]);
printf("nsum is %d",b);
system("cls");
}
printf("nDo you want any beverages or refreshment-");
printf("n1.coke");
printf("n2.sprite");
printf("n3.Garlic bread sticks ");
printf("n4.Cheesy dip");
printf("n5.Butterscotch ice cream");
printf("n6.Choclate ice cream");
printf("n7 none");
scanf("%d",&m);
printf("n How many do you want??");
scanf("%d",&n);
system("cls");
c=MP[m]*n;
printf("ntNo. of pizzas ordered is %d ",l);
printf("ntNo. of breavrage ordered is %d ",n);
printf("ntEach item is %d",MP[m]);
printf("ntSub total is %d",c);
d=(c+b);
printf("nt********************");
printf("ntGrand total= %d",d);
printf("nt********************");
printf("ntEnter customer name - ");
scanf("%s",&e);
printf("ntOrder placed on the name of %s",&e);
printf("n ..............THANK YOU
FOR VISITING US............... ");
getch();
}

More Related Content

What's hot (15)

12 1 문자열
12 1 문자열12 1 문자열
12 1 문자열
 
week-2x
week-2xweek-2x
week-2x
 
Clock For My
Clock For MyClock For My
Clock For My
 
10 1 배열의기초
10 1 배열의기초10 1 배열의기초
10 1 배열의기초
 
Presentation2
Presentation2Presentation2
Presentation2
 
Presentation2
Presentation2Presentation2
Presentation2
 
PHPUnit Myth
PHPUnit MythPHPUnit Myth
PHPUnit Myth
 
Bti1022 lab sheet 3
Bti1022 lab sheet 3Bti1022 lab sheet 3
Bti1022 lab sheet 3
 
Programming meeting #4
Programming meeting #4Programming meeting #4
Programming meeting #4
 
useR!2010 matome
useR!2010 matomeuseR!2010 matome
useR!2010 matome
 
CQL 实现
CQL 实现CQL 实现
CQL 实现
 
Presentation2
Presentation2Presentation2
Presentation2
 
Python Developer's Daily Routine
Python Developer's Daily RoutinePython Developer's Daily Routine
Python Developer's Daily Routine
 
怖くない!Implicit!
怖くない!Implicit!怖くない!Implicit!
怖くない!Implicit!
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scripting
 

Similar to PIZZA HUT C program

Similar to PIZZA HUT C program (20)

C Programming Example
C Programming ExampleC Programming Example
C Programming Example
 
ADA FILE
ADA FILEADA FILE
ADA FILE
 
C programs Set 2
C programs Set 2C programs Set 2
C programs Set 2
 
Chapter 8 c solution
Chapter 8 c solutionChapter 8 c solution
Chapter 8 c solution
 
DAA Lab File C Programs
DAA Lab File C ProgramsDAA Lab File C Programs
DAA Lab File C Programs
 
C basics
C basicsC basics
C basics
 
Cpds lab
Cpds labCpds lab
Cpds lab
 
VTU Data Structures Lab Manual
VTU Data Structures Lab ManualVTU Data Structures Lab Manual
VTU Data Structures Lab Manual
 
Cpd lecture im 207
Cpd lecture im 207Cpd lecture im 207
Cpd lecture im 207
 
C programs
C programsC programs
C programs
 
C
CC
C
 
C tech questions
C tech questionsC tech questions
C tech questions
 
Pnno
PnnoPnno
Pnno
 
Data Structure in C Programming Language
Data Structure in C Programming LanguageData Structure in C Programming Language
Data Structure in C Programming Language
 
C programms
C programmsC programms
C programms
 
LET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERSLET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERS
 
Logic development
Logic developmentLogic development
Logic development
 
Ada file
Ada fileAda file
Ada file
 
Data Structures : array operations in c program
Data Structures : array operations in c program Data Structures : array operations in c program
Data Structures : array operations in c program
 
C lab programs
C lab programsC lab programs
C lab programs
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

PIZZA HUT C program

  • 1. Pizza hut program add design by urself #include<stdio.h> #include<conio.h> #include<stdlib.h> int main() { int a,b,c,d; system("color F2 "); char e; int i,j,k,l,m,n; int AP[15]={0,400,440,365,195,295,325,525,785,450,365,440,295,199,249}; int MP[7]={0,60,65,89,25,85,100}; printf("nSelect category"); printf("n 1.Veg pizza"); printf("n 2.Nonveg pizza"); printf("n 3.Offersn"); scanf("%d",&i); if (i==1) { system("cls"); printf("n 1.Deluxe Veggie"); printf("n 2.Veg extra vaganza"); printf("n 3.5 Pepper"); printf("n 4.Farm house pizza"); printf("n 5.Peppy Paneer"); printf("n 6.Cheese n cornn"); scanf("%d",&j); system("cls"); printf("nWhich size pizza you want?"); printf("n1.regular"); printf("n2.medium"); printf("n3.largen"); scanf("%d",&k); printf("nEnter number of pizza's - "); scanf("%d",&l); if (k==1){ a=0.2*AP[j]; printf("n cost of each pizza is %d",a); b=a*l; printf("nsum is %d",b); system("cls"); } if (k==2){ a=0.5*AP[j]; printf("n cost of each pizza is%d",a); b=a*l; printf("nsum is %d",b); system("cls"); } if (k==3){ a=AP[j]; printf("n cost of each pizza is%d",a); b=a*l; printf("nsum is %d",b); system("cls"); } } else if (i==2){ printf("n 1.Chicken dominator"); printf("n 2.Peri peri chicken"); printf("n 3.Chicken tikka"); printf("n 4.Chicken golden delight"); printf("n 5.Chicken Fiesta");
  • 2. printf("n 6.Chicken sausage"); scanf("%d",&j); printf("n Which size pizza you want?"); printf("n 1.regular"); printf("n 2.medium"); printf("n 3.large"); scanf("%d",&k); printf("n Enter number of pizza's-"); scanf("%d",&l); if (k==1){ a=0.2*AP[j+6]; printf("n cost of each pizza is%d",a); b=a*l; printf("nsum is %d",b); system("cls"); } if (k==2){ a=0.5*AP[j+6]; printf("n cost of each pizza is%d",a); b=a*l; printf("nsum is %d",b); system("cls"); } if (k==3){ a=AP[j+6]; printf("n cost of each pizza is%d",a); b=a*l; printf("nsum is %d",b); system("cls"); } } else if (i==3){printf("n 1.Cheese n Corn + fresh veggie"); printf("n 2.Medium hand tossed pizza"); scanf("%d",&j); switch(j) { case 1:{ printf("n you have selected Cheese n corn + fresh veggie"); break;} case 2:{ printf("n you have selected Mediumhand tossed pizza"); break; } } printf("n Enter number of combo pizza's-"); scanf("%d",&l); b=AP[j+12]*l; printf("ncost of each combo is %d",AP[j+12]); printf("nsum is %d",b); system("cls"); } printf("nDo you want any beverages or refreshment-"); printf("n1.coke"); printf("n2.sprite"); printf("n3.Garlic bread sticks "); printf("n4.Cheesy dip"); printf("n5.Butterscotch ice cream"); printf("n6.Choclate ice cream"); printf("n7 none"); scanf("%d",&m); printf("n How many do you want??"); scanf("%d",&n); system("cls"); c=MP[m]*n;
  • 3. printf("ntNo. of pizzas ordered is %d ",l); printf("ntNo. of breavrage ordered is %d ",n); printf("ntEach item is %d",MP[m]); printf("ntSub total is %d",c); d=(c+b); printf("nt********************"); printf("ntGrand total= %d",d); printf("nt********************"); printf("ntEnter customer name - "); scanf("%s",&e); printf("ntOrder placed on the name of %s",&e); printf("n ..............THANK YOU FOR VISITING US............... "); getch(); }