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 = Convert.ToInt32(smW / 120);
- int placeH = Convert.ToInt32(smH / 70);
- int allPlace = (placeH * placeW) - 3;
- Console.WriteLine(allPlace);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement