- Joined
- Apr 27, 2017
- Posts
- 1,410
- Reaction
- 1,944
- Points
- 760
- Age
- 29
Pano po lagyan ng kung ano pinili mo na order mga boss kunware yung 1 pipiliin ko sabay lalabas yung pizza na yun
C:
#include<stdio.h>
void main (void)
{
int code, qty;
float price, amt;
printf("Welcome to League of Pizza how can we help you today\n\n");
printf("================================MENU===============================");
printf("[1] Ezreal Ham and Cheese Pizza\t\tPhp 150.00\n");
printf("[2] Teemo Veggie Pizza\t\t\t\tPhp 180.00\n");
printf("[3] Jinx Ultimate Meat Pizza\t\t\tPhp 200.00\n");
printf("[4] Ekko BBQ Chicken Pizza\t\t\tPhp 230.00\n");
printf("[5] Sylas All-In Pizza\t\t\t\tPhp 300.00\n");
printf("===================================================================");
printf("\nEnter Code: ");
scanf("%d", &code);
printf("\nEnter Quantity: ");
scanf("%d", &qty);
switch(code)
{
case 1: price = 150.00;
break;
case 2: price = 180.00;
break;
case 3: price = 200.00;
break;
case 4: price = 230.00;
break;
case 5: price = 300.00;
break;
}
amt = price * qty;
printf("\nAmount: %.2f", amt);
}
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.