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 HearthStone
- {
- class Program
- {
- static void Main(string[] args)
- {
- int TimeBreak = int.Parse(Console.ReadLine());
- double PriceForOnePacketCards = double.Parse(Console.ReadLine());
- double PriceForOneAdventure = double.Parse(Console.ReadLine());
- double CoffeePrice = double.Parse(Console.ReadLine());
- PriceForOnePacketCards *= 3;
- PriceForOneAdventure *= 2;
- TimeBreak -= 15;
- double formula = PriceForOnePacketCards + PriceForOneAdventure + CoffeePrice;
- Console.WriteLine("{0:F2}",formula); // колко е дал Ники за всички неща през почивката
- Console.WriteLine(TimeBreak); // колко време му остава след като свърши с пазаруването
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement