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