Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Mobilen_ooperator
- {
- class Program
- {
- static void Main(string[] args)
- {
- string srok = Console.ReadLine();
- string tip = Console.ReadLine();
- string yesNo = Console.ReadLine();
- double numb = double.Parse(Console.ReadLine());
- double total = 0;
- double cena = 0;
- if (srok == "one")
- if (tip == "Small")
- { cena = 9.98;
- }
- if (srok == "two")
- if (tip == "Small")
- {
- cena = 8.58;
- }
- if (srok == "one")
- if (tip == "Middle")
- {
- cena = 18.99;
- }
- if (srok == "two")
- if (tip == "Middle")
- {
- cena = 17.09;
- }
- if (srok == "one")
- if (tip == "Large")
- {
- cena = 25.98;
- }
- if (srok == "two")
- if (tip == "Large")
- {
- cena = 23.59 ;
- }
- if (srok == "one")
- if (tip == "ExtraLarge")
- {
- cena = 35.99;
- }
- if (srok == "two")
- if (tip == "ExtraLarge")
- {
- cena = 31.79;
- }
- total = cena * numb;
- if (yesNo == "yes")
- if (numb <= 10)
- {
- total = (cena + 5.50) * numb;
- }
- if (yesNo == "yes")
- if (numb > 10 && numb <= 30)
- {
- total = (cena + 4.35) * numb;
- }
- if (yesNo == "yes")
- if (numb > 30)
- {
- total = (cena + 3.85) * numb;
- }
- if (srok == "two")
- {
- total = total - (total * 3.75 /100) ;
- }
- Console.WriteLine("{0:f2} lv.", total);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement