64 671
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #11090 in C++ for Khan

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

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions