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 ExercisesSoftu
- {
- class Program
- {
- static void Main(string[] args)
- {
- int tables = int.Parse(Console.ReadLine());
- double lengthMetres = double.Parse(Console.ReadLine());
- double widthMetres = double.Parse(Console.ReadLine());
- double coverArea = tables * (lengthMetres + (2 * 0.30)) * (widthMetres + 2 * 0.30);
- double squareArea = tables * ((lengthMetres / 2) * (lengthMetres * 2));
- double sumDollars = (coverArea * 7) + (squareArea * 9);
- double sumLevs = sumDollars * 1.85;
- Console.WriteLine($"{Math.Round(sumDollars,2)} USD");
- Console.WriteLine($"{Math.Round(sumLevs, 2)} BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement