how to except input from user then add them together c++ code example
Example 1: how to get input from the console in c++
int age;
cin >> age;
Example 2: get data from terminal c++
int i;
cout << "Please enter an integer value: ";
cin >> i;
int age;
cin >> age;
int i;
cout << "Please enter an integer value: ";
cin >> i;