fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string Name = "Ajay";
  6. int Age = 10;
  7. cout<<Name<<" "<<Age;
  8. //Calculate future Age
  9. int futureAge = Age +50;
  10. //Print the formatted output
  11. cout<<"In 50 years,"<<Name<< "you will be "<<futureAge << "years old";
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Ajay 10In 50 years,Ajayyou will be 60years old