Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace Methods
- {
- public class Methods
- {
- public static void Main()
- {
- double width = double.Parse(Console.ReadLine());
- double height = double.Parse(Console.ReadLine());
- double area = GetArea(width, height);
- Console.WriteLine(area);
- }
- public static double GetArea(double width, double height)
- {
- return width * height;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement