fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. string name;
  5. int age;
  6. cin >> name >> age;
  7. cout << "Hello " << name << ", you are " << age << " years old." << endl;
  8. return 0;
  9. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
Hello , you are 0 years old.