Spocoman

05. Training Lab

Nov 15th, 2021 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace TrainingLab
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             double w = double.Parse(Console.ReadLine());
  11.             double h = double.Parse(Console.ReadLine());
  12.             double num = (h - 1) * 100 / 70;
  13.             double row = (w * 100 / 120);
  14.             double sum = Math.Floor(num) * Math.Floor(row) - 3;
  15.            
  16.             Console.WriteLine(sum);
  17.         }
  18.     }
  19. }
Add Comment
Please, Sign In to add comment