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 the 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

What is operator in c++

Operators are a subset of functions that take one or more arguments and return a new value. Operators include things like addition (+), subtraction (-), multiplication (*), and so on. Variables and constants are operated on with the use of operators.

What is namespace in c++

You may specify the context in which names are defined by using namespace. A namespace, in essence, establishes a scope. C++ includes a standard library that contains common features like containers and algorithms that you’ll utilize in your programs.