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 Photos
- {
- class Program
- {
- static void Main(string[] args)
- {
- int countFotos = int.Parse(Console.ReadLine());
- string type = Console.ReadLine();
- string typeOfOrder = Console.ReadLine();
- double onePeicePrize = 0;
- double countDiscount = 0;
- switch (type)
- {
- case "9X13":
- onePeicePrize = 0.16;
- if (countFotos >= 50)
- {
- countDiscount = 0.95;
- }
- break;
- case "10X15":
- onePeicePrize = 0.16;
- if (countFotos >= 80)
- {
- countDiscount = 0.97;
- }
- break;
- case "13X18":
- onePeicePrize = 0.38;
- if (countFotos >= 50 && countFotos <= 100)
- {
- countDiscount = 0.97;
- }
- else if (countFotos > 100)
- {
- countDiscount = 0.95;
- }
- break;
- case "20X30":
- onePeicePrize = 2.90;
- if (countFotos >= 10 && countFotos <= 50)
- {
- countDiscount = 0.93;
- }
- else if (countFotos > 50)
- {
- countDiscount = 0.91;
- }
- break;
- default:
- Console.WriteLine("def");
- break;
- }
- double sum = countFotos * onePeicePrize * countDiscount;
- if (type == "online") sum *= 0.98;
- Console.WriteLine("{0:f2}BGN", sum);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement