Hypotenuse Calculator
Hypotenuse Calculator:
#include<iostream>
#include<cmath>
using namespace std;
void hypotenuse(int x,int y);
void main()
{
int x,y;
hypotenusecalc(x,y);
}
void hypotenusefcalc(int x,int y)
{
float hyp;
cout<<"Enter perpendicular side"<<endl;
cin>>x;
cout<<"Enter base side"<<endl;
cin>>y;
hyp=sqrt(pow(x,2)+pow(y,2));
cout<<hyp<<endl;
}
Download:
To download this code click on the given link below:
Comments
Post a Comment