simeon3000

Megapixels

Jun 1st, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1.             int width = int.Parse(Console.ReadLine());
  2.             int height = int.Parse(Console.ReadLine());
  3.  
  4.             double mp = Math.Round(width * height / 1000000.0, 1);
  5.  
  6.             Console.WriteLine($"{width}x{height} => {mp}MP");
Advertisement
Add Comment
Please, Sign In to add comment