Advertisement
tiskowdaknife

Untitled

Oct 2nd, 2023
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dim a, b, c, S, P, L As Double
  2.  
  3. Console.Write("Side a: ")
  4. a = Console.ReadLine()
  5.  
  6. Console.Write("Side b: ")
  7. b = Console.ReadLine()
  8.  
  9. Console.Write("Side c: ")
  10. c = Console.ReadLine()
  11.  
  12. P = a + b + c
  13. L = P / 2
  14.  
  15. S = Math.Sqrt(L * (L - a) * (L - b) * (L - c))
  16.  
  17. MsgBox("P = " & P)
  18. MsgBox("S = " & S)
  19.  
Tags: eheebrt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement