Answer to Question #11090 in C++ for Khan
how to write a program to input three values and display rasult
1
2012-06-22T08:34:24-0400
Please state clearly what action result you want to obtain. Here we multiplied all three entered values as an example.
#include <iostream>
int i=0;
double x, y, z, res;
void main(){
cout<<"Enter x:";
cin>>x;
cout<<"Enter y:";
cin>>y;
cout<<"Enter z:";
cin>>z;
res = x*y*z;
cout<<"Here is the result: res = "<<res<<"\n";
}
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment