Created
January 31, 2016 10:12
-
-
Save jerryalfs/75fda59f8e1b8ba9815c to your computer and use it in GitHub Desktop.
Area Of A Arbitary Triangle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #How to calculate area of an arbitary triangle | |
| import math | |
| a = input("Enter value a : ") | |
| a = float(a) | |
| b = input("Enter value b : ") | |
| b = float(b) | |
| c = input("Enter the degree : ") | |
| c = float(c) | |
| c = math.radians(c) | |
| area = 1/2 * a * b * math.sin(c) | |
| print ("The area of aribatary triangle : ",area) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment