ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل FATUMA Issack
تاريخ النشر: 2017/10/05
Ahmed Jilani
من قبل 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;

}

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟