Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _07._Triangle_Area
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double a = double.Parse(Console.ReadLine());
  10. double h = double.Parse(Console.ReadLine());
  11.  
  12. double area = (a * h) / 2;
  13. Console.WriteLine($"Triangle area = {Math.Round(area,2)}");
  14.  
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement