fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Input
  6. string name; int age;
  7. getline(cin, name);
  8. cin >> age;
  9. // Process -> Output
  10. cout << "In 15 years, age of " << name << " will be " << (long long)age + 15;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5316KB
stdin
John Pork
20
stdout
In 15 years, age of John Pork will be 35