daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 29th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.          var type = Console.ReadLine().ToLower();
  8.             var r = int.Parse(Console.ReadLine());
  9.             var c = int.Parse(Console.ReadLine());
  10.  
  11.             var price = 0.0;
  12.  
  13.             if (type == "premiere")
  14.             {
  15.                 price = 12.00;
  16.             }
  17.             else if (type == "normal")
  18.             {
  19.                 price = 7.50;
  20.             }
  21.             else if (type == "discount")
  22.             {
  23.                 price = 5.00;
  24.             }
  25.             Console.WriteLine("{0:f2} ", (c * r) * price);
  26.     }
  27. }
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top