Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int N = int.Parse(Console.ReadLine());
- double W = double.Parse(Console.ReadLine());
- double L = double.Parse(Console.ReadLine());
- int M = int.Parse(Console.ReadLine());
- int O = int.Parse(Console.ReadLine());
- double obshtaPlosht = N * N;
- double peikaPlosht = M * O;
- double zaPokrivane = obshtaPlosht - peikaPlosht;
- double ploshtPlochki = W * L;
- double neobhodimiPlochki = zaPokrivane / ploshtPlochki;
- double vreme = neobhodimiPlochki * 0.2;
- Console.WriteLine(neobhodimiPlochki);
- Console.WriteLine(vreme);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement