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 Triangle_Area
- {
- class Program
- {
- static void Main(string[] args)
- {
- float a = float.Parse(Console.ReadLine());
- float h = float.Parse(Console.ReadLine());
- var area = (a * (h / 2));
- Math.Round(area, 2);
- Console.WriteLine("area=" + area );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment