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 _10_TriangleArea
- {
- class TriangleArea
- {
- static void Main(string[] args)
- {
- double side = double.Parse(Console.ReadLine());
- double high = double.Parse(Console.ReadLine());
- double area = side * high / 2;
- Console.WriteLine("Triangle area = " + area);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment