Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace RectangleArea
- {
- class RectanlgeArea
- {
- static void Main()
- {
- double width = double.Parse(Console.ReadLine());
- double height = double.Parse(Console.ReadLine());
- GetRectanlgeArea(width, height);
- }
- public static double GetRectanlgeArea(double width,double height)
- {
- double area = width * height;
- Console.WriteLine("Area is {0}",area);
- return area;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement