62 568
Assignments Done
99%
Successfully Done
In June 2018

Answer to Question #22314 in C++ for multazim

Question #22314
write a c++program that accept two numbers and displayt their sum,product,and average.
Expert's answer
#include <iostream>
using namespace std;

int n, m;

void main(){

cout<<"enter the first number: ";
cin>>n;
cout<<"enter the second number: ";
cin>>m;

cout<<"sum: "<<m+n<<"\nproduct: "<<m*n<<"\naverage: "<<(m+n)/2.0<<"\n";

system("pause");
}

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