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 Shopping_time
- {
- class Program
- {
- static void Main(string[] args)
- {
- int brakeTime = int.Parse(Console.ReadLine());
- double pricePerPart = double.Parse(Console.ReadLine());
- double pricePerProgram = double.Parse(Console.ReadLine());
- double priceFrape = double.Parse(Console.ReadLine());
- int freeTime = brakeTime - (5 + 6 + 4);
- double moneyPart = 3 * pricePerPart;
- double moneyPrograms = 2 * pricePerProgram;
- double allMoney = moneyPart + moneyPrograms + priceFrape;
- Console.WriteLine($"{allMoney:f2}");
- Console.WriteLine(freeTime);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement