0% found this document useful (0 votes)
5 views1 page

Movie Ticket

Uploaded by

dspkingkohli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Movie Ticket

Uploaded by

dspkingkohli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

#include <stdio.

h>

int main() {
int choice, tickets, total;

printf("Welcome to Simple Movie Ticket Booking System\n");


printf("Select a Movie:\n");
printf("1. Pathaan (₹150)\n");
printf("2. Jawan (₹200)\n");
printf("3. Animal (₹250)\n");

printf("Enter your choice (1/2/3): ");


scanf("%d", &choice);

if (choice == 1) {
printf("You selected Pathaan \n");
printf("Enter number of tickets: ");
scanf("%d", &tickets);
total = tickets * 150;
printf(" Booking Successful! Total Amount: ₹%d\n", total);
}
else if (choice == 2) {
printf("You selected Jawan \n");
printf("Enter number of tickets: ");
scanf("%d", &tickets);
total = tickets * 200;
printf(" Booking Successful! Total Amount: ₹%d\n", total);
}
else if (choice == 3) {
printf("You selected Animal \n");
printf("Enter number of tickets: ");
scanf("%d", &tickets);
total = tickets * 250;
printf(" Booking Successful! Total Amount: ₹%d\n", total);
}
else {
printf(" Invalid Choice. Please try again.\n");
}

return 0;
}

You might also like