Computer Science, asked by negi989695, 7 months ago

10. Write a program to find a side of a right angled triangle whose two sides and an angle is given.
Write a program to calculate the radius of a sphere whose area (4πr**2?) is given​

Answers

Answered by shivaramcvm
2

// C++ implementation of the approach  

#include<bits/stdc++.h>  

#include <iostream>  

#include <iomanip>  

using namespace std;  

 

// Function to return the hypotenuse of the  

// right angled triangle  

double findHypotenuse(double side1, double side2)  

{  

   double h = sqrt((side1 * side1) + (side2 * side2));  

   return h;  

}  

 

// Driver code  

int main()  

{  

   int side1 = 3, side2 = 4;  

   cout << fixed << showpoint;  

   cout << setprecision(2);  

   cout << findHypotenuse(side1, side2);  

}  

     

Answered by shrishras
1

Answer:

Explanation:

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)

Similar questions