C++ program for the division of sum of square of two numbers to square of another number
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x,y,z;
double div;
cout<<"enter x = \n";
cin>>x;
cout<<"Enter y = \n";
cin>>y;
cout<<"Enter z = \n";
cin>>z;
{
x=pow(x,2);
y=pow(y,2);
z=pow(z,2);
}
{
div=(x+y)/z;
}
cout<<"The division of sum of square of two numbers to square of another number = "<<div;
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x,y,z;
double div;
cout<<"enter x = \n";
cin>>x;
cout<<"Enter y = \n";
cin>>y;
cout<<"Enter z = \n";
cin>>z;
{
x=pow(x,2);
y=pow(y,2);
z=pow(z,2);
}
{
div=(x+y)/z;
}
cout<<"The division of sum of square of two numbers to square of another number = "<<div;
return 0;
}
No comments:
Post a Comment