Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.Design;
- using System.Globalization;
- using System.Reflection;
- using System.Runtime.ConstrainedExecution;
- using System.Security.Cryptography;
- namespace SomeExcercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- const double premiere = 12.00;
- const double normal = 7.50;
- const double discount = 5.00;
- string typeOfProjection = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- double income = 0;
- if (typeOfProjection == "Premiere")
- {
- income = (rows * columns) * premiere;
- }
- else if (typeOfProjection == "Normal")
- {
- income = (rows * columns) * normal;
- }
- else if (typeOfProjection == "Discount")
- {
- income = (rows * columns) * discount;
- }
- Console.WriteLine($"{income:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment