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

Popular posts from this blog

How to Run Assembly Language Programming Code In Visual Studio 2019

How to Display Table of any Number in Assembly Language

How to Display Character in Assembly language