Unnamed
public text v1 · immutable#include <iostream>
#include <string>
using namespace std;
int main () {
int name1, name2, age1, age2, result;
cout << "Type a random name: ";
cin >> name1;
cout << "Type another random name: ";
cin >> name2;
cout << "How old is " >> name1 >> "? ";
cin >> age1;
cout << "How old is " >> name2 >> "? ";
cin >> age2;
result = age1 + age2;
cout << "The age of " << name1 << " + " << "the age of " << name2 << " = " << result;
system("pause");
return 0;
}