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 ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- double n = double.Parse(Console.ReadLine());
- double Wplochka = double.Parse(Console.ReadLine());
- double Lplochka = double.Parse(Console.ReadLine());
- double Wpeika = double.Parse(Console.ReadLine());
- double Lpeika = double.Parse(Console.ReadLine());
- double areaPlaza = n * n;
- double areaPeika = Wpeika * Lpeika;
- double areaPlochka = Wplochka * Lplochka;
- double areaToCcover = areaPlaza - areaPeika;
- double NumPlochki = areaToCcover / areaPlochka;
- double timeToCover = NumPlochki * 0.2;
- Console.WriteLine(NumPlochki);
- Console.WriteLine(timeToCover);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement