Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Write a c++ program that calculate and displays the hypotenuse value of right angle triangle?

user-image
Question added by FATUMA Issack
Date Posted: 2017/10/05
Ahmed Jilani
by Ahmed Jilani , Teacher , Learners School

Like when you Find it nd vote up! thank you

 

#include<iostream>

#include<cmath>

using namespace std;

main()

{

float x,y,z;

cout<<"Enter Value of Perpendicular: ";

cin>>x;

cout<<"Enter Value of Base: ";

cin>>y;

cout<<" HYP = "<<sqrt(pow(x,2)+pow(y,2))<<"  Answer. ";

return 0;

}

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.