60 525
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #19713 in C++ for ben

Question #19713
read 2 numbers a and b
compute the following expressions:
a+b
a-b
a*b
sqrt(a)
Expert's answer
# include <iostream>

using namespace std;

int main(){
double a,b;
cout<<"Enter first value: ";
cin>>a;
cout<<"Enter second value: ";
cin>>b;
cout<<endl;
cout<<"a+b="<<a+b<<endl;
cout<<"a-b="<<a-b<<endl;
cout<<"a*b="<<a*b<<endl;
cout<<"sqrt(a)="<<sqrt(a)<<endl;

system("PAUSE");
return 0;
}

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions