Advertisement
IordanRujinov

HearthStone

Mar 12th, 2018
4,289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.99 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace HearthStone
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int TimeBreak = int.Parse(Console.ReadLine());
  14.             double PriceForOnePacketCards = double.Parse(Console.ReadLine());
  15.             double PriceForOneAdventure = double.Parse(Console.ReadLine());
  16.             double CoffeePrice = double.Parse(Console.ReadLine());
  17.  
  18.             PriceForOnePacketCards *= 3;
  19.             PriceForOneAdventure *= 2;
  20.             TimeBreak -= 15;
  21.             double formula = PriceForOnePacketCards + PriceForOneAdventure + CoffeePrice;
  22.             Console.WriteLine("{0:F2}",formula); // колко е дал Ники за всички неща през почивката
  23.             Console.WriteLine(TimeBreak); // колко време му остава след като свърши с пазаруването
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement