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