kirililchev3

Megapixels

May 27th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System;
  2.  
  3. namespace P02_Megapixels
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double width = double.Parse(Console.ReadLine());
  10.             double height = double.Parse(Console.ReadLine());
  11.             double mp = Math.Round(((width * height) / 1000000), 1);
  12.  
  13.             Console.WriteLine($"{width}x{height} => {mp}MP");
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment