Anzzhhela98

gg

Jun 4th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.72 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _ivotypoto
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string type = Console.ReadLine();
  10.             int rows = int.Parse(Console.ReadLine());
  11.             int colums = int.Parse(Console.ReadLine());
  12.             double price = 0;
  13.  
  14.             if (type == "Premiere")
  15.             {
  16.                 price = ( colums * rows)*12.00;
  17.             }
  18.             else if (type == "Normal")
  19.             {
  20.                 price = (colums * rows) * 7.50;
  21.             }
  22.             else if (type == "Discount")
  23.             {
  24.                 price = (colums * rows) * 5;
  25.             }
  26.             Console.WriteLine($"{price:f2} leva");
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment