Answer to Question #24684 in C++ for red rose
2013-02-19T04:43:38-05:00
Write a program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, difference and quotient of the two numbers.
1
2013-02-20T09:22:50-0500
# include <iostream> # include <string > using namespace std; int main(){ double a,b; cout<<"Enter two numbers:"; cin>>a; cout<<"Enter second:"; cin>>b; cout<<"A+B="<<a+b<<endl; cout<<"A-B="<<a-b<<endl; cout<<"A/B="<<a/b<<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 !
Learn more about our help with Assignments:
C++
Comments
Leave a comment