Answer to Question #335672 in C++ for Kate

Question #335672

Make a program that will compute and display the sum, difference, product and quotient of two numbers.


1
Expert's answer
2022-04-30T08:16:29-0400
#include <iostream>


int main()
{
	int num_one = 0;
	int num_two = 0;


	std::cout << "Enter two numbers: ";
	std::cin >> num_one >> num_two;


	std::cout << "Sum - " << num_one + num_two << std::endl;
	std::cout << "Difference - " << num_one - num_two << std::endl;
	std::cout << "Product - " << num_one * num_two << std::endl;
	std::cout << "Quotient - " << num_one / num_two << std::endl;


	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
APPROVED BY CLIENTS