Advertisement
Guest User

Untitled

a guest
May 21st, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace _14IntegerToHexAtBinary
  9. {
  10. class IntegerToHexAtBinary
  11. {
  12. static void Main(string[] args)
  13. {
  14. Console.Write(" a= ");
  15. var a = Double.Parse(Console.ReadLine());
  16. Console.Write(" h= ");
  17. var h = Double.Parse(Console.ReadLine());
  18. var area = (a * h / 2);
  19. var result = Math.Round(area, 2);
  20. Console.WriteLine(result);
  21. }
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement