Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Task 008, Chapter 2.0
- using System;
- public class TriangleArea
- {
- static void Main()
- {
- double a = double.Parse(Console.ReadLine());
- double h = double.Parse(Console.ReadLine());
- double area = a * h / 2;
- Console.WriteLine(Math.Round(area, 2));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment