Answer to Question #300066 in C++ for Kassie

Question #300066

Write a C++ program from your programming app, that will ask the user numerical input five times then display its SUM, PRODUCT, DIFFERENCE and QUOTIENT as OUTPUT

1
Expert's answer
2022-02-19T16:56:02-0500


#include<iostream>


using namespace std;






int main(){


	float num1;
	float num2;


	for(int i=0;i<5;i++){
		cout<<"Enter number 1: ";
		cin>>num1;
		cout<<"Enter number 2: ";
		cin>>num2;
		cout <<"Sum = "<< (num1 + num2) << "\n";
		cout <<"Difference = "<< (num1 - num2) << "\n";
		cout <<"Quotient = "<< (num1 / num2) <<"\n";
		cout <<"Product = "<<(num1 * num2) << "\n";
	}


	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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog