Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main() {
- char* items[] = { "Chicken Biryani", "Chicken Chap", "Mutton Biryani"};
- double prices[] = { 80, 50, 110 };
- printf("%-20s %-10s \n", "MENU ITEM", "PRICE");
- printf("%-20s Rs.%6.2lf \n", items[0], prices[0]);
- printf("%-20s Rs.%6.2lf \n", items[1], prices[1]);
- printf("%-20s Rs.%6.2lf \n", items[2], prices[2]);
- return 0;
- }
Add Comment
Please, Sign In to add comment