C++ program to print the sum of two numbers

C++ program to print the sum of two numbers. This program will add two numbers in result with the third variable in C++ to print the addition of two numbers in cpp programming language.

#include <iostream>
using namespace std;
int main()
{
int a, b, c;
cout << "Enter two integers: ";
cin >> a >> b;
c = a + b;
cout << a << " + " << b << " = " << c; 
return 0;
}

Output

Enter two integers:

45 45

45 + 45 = 90