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 blagotvoritelno
- {
- class Program
- {
- static void Main(string[] args)
- {
- var D = int.Parse(Console.ReadLine());
- var S = int.Parse(Console.ReadLine());
- var T = int.Parse(Console.ReadLine());
- var G = int.Parse(Console.ReadLine());
- var P = int.Parse(Console.ReadLine());
- var torti = T * 45;
- var gofreti = G * 5.80;
- var palachinki = P * 3.20;
- var obshtoDen = (torti + gofreti + palachinki) * S;
- var allsum = obshtoDen * D;
- var summinus = allsum - (allsum * 1/8);
- Console.WriteLine($"{summinus:F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement