Answer to Question #11090 in C++ for Khan

Question #11090
how to write a program to input three values and display rasult
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS