fbinnzhivko

RectangleArea

Mar 6th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using System;
  2.  
  3. class RectangleArea
  4. {
  5.     static void Main()
  6.     {
  7.         Console.Write("a = ");
  8.         var a = decimal.Parse(Console.ReadLine());
  9.         Console.Write("b = ");
  10.         var b = decimal.Parse(Console.ReadLine());
  11.         Console.WriteLine("Rectangle Area:{0}", a * b);
  12.     }
  13. }
Add Comment
Please, Sign In to add comment