Make a program that will compute and display the sum, difference, product and quotient of two numbers.
#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;
}
Comments
Leave a comment