Computer Science
Write a program to find a side of a right angled triangle whose two sides and an angle is given.
Python
Python Data Handling
45 Likes
Answer
import math
a = float(input("Enter base: "))
b = float(input("Enter height: "))
x = float(input("Enter angle: "))
c = math.sqrt(a ** 2 + b ** 2)
print("Hypotenuse =", c)
Output
Enter base: 10.5
Enter height: 5.5
Enter angle: 60
Hypotenuse = 11.853269591129697
Answered By
23 Likes
Related Questions
Write a program to generate 6 digit random secure OTP between 100000 to 999999.
Write a program to calculate the radius of a sphere whose area (4πr2) is given.
Write a program that inputs a string and then prints it equal to number of times its length, e.g.,
Enter string : "eka"
Result ekaekaekaWrite a program to generate 6 random numbers and then print their mean, median and mode.