Skip to content

Latest commit

 

History

History
23 lines (23 loc) · 511 Bytes

File metadata and controls

23 lines (23 loc) · 511 Bytes

#include<stdio.h> void main() { int a; printf("Enter any number from 1 to 5\n"); scanf("%d",&a); switch(a) { case 1: printf("Food item:- Pizza \nPrice:- Rs.239"); break; case 2: printf("Food item:- Burger \nPrice:- Rs.129"); break; case 3: printf("Food item:- Pasta \nPrice:- Rs.179"); break; case 4: printf("Food item:- French Fries \nPrice:-Rs. 99"); break; case 5: printf("Food item:- Sandwich \nPrice:- Rs.149"); break; default: printf("Invalid number"); break; } return 0; }