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