0
C++ code on finding the hypotenuse
2 ответов
+ 10
#include <iostream>
#include <cmath>
int main()
{
     int b, h; std::cin >> b >> h;
     std::cout << "Hypotenuse: " << sqrt((b*b)+(h*h));
     return 0;
}
+ 7
do you want this...... 
👇👇👇👇👇👇👇
#include <iostream. h>
#include <math. h>
void main ()
{
int base, height, hyposquare ,hypo; 
cout <<"enter base and height of triangle ";
cin>>base>>height; 
hyposquare =pow(base,2)+pow(height,2);
hypo=sqrt(hyposquare);
cout<<"hypotenuse of triangle is "<<hypo; 
getch();
}



