Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MyApp
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- double w = double.Parse(Console.ReadLine());
- double h = double.Parse(Console.ReadLine());
- double smW = (w * 100);
- double smH = ((h * 100) - 100);
- int placeW = (int)Math.Round(smW / 120);
- int placeH = (int)Math.Round(smH / 70);
- double allPlace = (placeH * placeW) - 3;
- Console.WriteLine(allPlace);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement