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 _5.damn
- {
- class Program
- {
- static void Main(string[] args)
- {
- var tables = double.Parse(Console.ReadLine());
- var weightTables = double.Parse(Console.ReadLine());
- var widhtTables = double.Parse(Console.ReadLine());
- var all = tables * (weightTables + 2 * 0.30) * (widhtTables + 2 * 0.30);
- var centre = tables * (weightTables / 2) * (weightTables / 2);
- var allofall1 = all *7 + centre *9 ;
- var allofall2 = allofall1 *1.85 ;
- Console.WriteLine("{0:f2} USD",allofall1);
- Console.WriteLine("{0:f2} BGN", allofall2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement