Answer to Question #238672 in C++ for Commish

Question #238672
"Sqrt A+C*(D*E)-C\/(F+G)*(H*J)"

 Write a C++ program that compute the given formula below


1
Expert's answer
2021-09-17T17:17:20-0400
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
	//SqrtA+C*(D*E)-C/(F+G)*(H*J)
	int A,C,D,E,F,G,H,J;
	float x,y,z,m,n;
	cout<<"Enter the interger A: ";
	cin>>A;
	cout<<"Enter the interger C: ";
	cin>>C;
	cout<<"Enter the interger D: ";
	cin>>D;
	cout<<"Enter the interger E: ";
	cin>>E;
	cout<<"Enter the interger F: ";
	cin>>F;
	cout<<"Enter the interger G: ";
	cin>>G;
	cout<<"Enter the interger H: ";
	cin>>H;
	cout<<"Enter the interger J: ";
	cin>>J;
	x=pow(A,0.5);
	m=C*(D*E)-C;
	n=x+m;
	y=(F+G)*(H*J);
	z=n/y;
	cout<<"Result is: "<<z;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS