Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- string movie = Console.ReadLine();
- int days = int.Parse(Console.ReadLine());
- int tickets = int.Parse(Console.ReadLine());
- double ticketPrice = double.Parse(Console.ReadLine());
- int percent = int.Parse(Console.ReadLine());
- double ticketProfit = tickets * ticketPrice;
- double periodProfit = days * ticketProfit;
- double fullProfit = periodProfit - (periodProfit * percent / 100);
- Console.WriteLine($"The profit from the movie {movie} is {fullProfit:f2} lv.");
- }
- }
- }
Add Comment
Please, Sign In to add comment