VelizarAvramov

08. Triangle Area

Mar 19th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _10_TriangleArea
  8. {
  9.     class TriangleArea
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double side = double.Parse(Console.ReadLine());
  14.             double high = double.Parse(Console.ReadLine());
  15.  
  16.             double area = side * high / 2;
  17.             Console.WriteLine("Triangle area = " + area);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment