marto9119

Untitled

Jan 7th, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | Source Code | 0 0
  1. using System;
  2.  
  3. namespace MyApp
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double w = double.Parse(Console.ReadLine());
  10.             double h = double.Parse(Console.ReadLine());
  11.             double smW = (w * 100);
  12.             double smH = ((h * 100) - 100);
  13.             int placeW = Convert.ToInt32(smW / 120);
  14.             int placeH = Convert.ToInt32(smH / 70);
  15.             double allPlace = (placeH * placeW) - 3;
  16.             Console.WriteLine(allPlace);
  17.  
  18.         }
  19.     }
  20. }
Add Comment
Please, Sign In to add comment