#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; }
-
Notifications
You must be signed in to change notification settings - Fork 0
SuvamRoutray/NumberToFoodItemUsingC
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published