Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _08.Triangle_Area
- {
- class Triangle_Area
- {
- static void Main(string[] args)
- {
- double a = double.Parse(Console.ReadLine());
- double h = double.Parse(Console.ReadLine());
- double area = Math.Round((a * h) / 2,2);
- Console.WriteLine("Triangle area = {0}",area);
- }
- }
- }
Add Comment
Please, Sign In to add comment