001-001-008
Variable Declaration: Movie Ticket Info
Easy
Problem Description
Variable Declaration: Movie Ticket Info
Learning Objective: Declare variables of different data types, store values and output them
Create a program to display movie ticket information. Store the movie title, seat number, and price in variables and display them.
Input
Line 1: Movie title (string)
Line 2: Seat number (string, e.g., A-12)
Line 3: Price (integer)
Output
--- Movie Ticket ---
Title: [title]
Seat: [seat number]
Price: [price] yen
--------------------
Examples
Example 1
Input:
Avengers
B-05
1800
Output:
--- Movie Ticket ---
Title: Avengers
Seat: B-05
Price: 1800 yen
--------------------
Example 2
Input:
Totoro
C-10
1200
Output:
--- Movie Ticket ---
Title: Totoro
Seat: C-10
Price: 1200 yen
--------------------
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
