C++ Program to find the difference of two integer numbers
Program
#include<iostream>
using namespace std;
int main()
{
int a, b, difference;
cout << "Enter value of a:\t";
cin >> a;
cout << "Enter value of b:\t";
cin >> b;
difference = a - b;
cout << "Difference = " << difference << endl;
return 0;
}
Output
Enter value of a: 87
Enter value of b: 14
Difference = 73