Computer Science, asked by cricketmasti16, 4 months ago

Write the C++ program to input two numbers and display its difference and multiplication with an appropiate message.

Answers

Answered by tumuluriannapurna196
0

#include <iostream>

using namespace std;

int main()

{

int first, second, add, subtract, multiply;

float divide;

cout << "Please enter two integer: ";

cin >> first;

cin >> second;

add = first + second;

subtract = first - second;

multiply = first * second;

divide = first / (float)second; //typecasting

cout << endl <<"Sum = " << add;

cout << endl <<"Difference = " << subtract;

cout << endl <<"Multiplication = " << multiply;

cout << endl <<"Division = " << divide;

return 0;

}

please mark as brainliest answer

Similar questions