fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. string name;
  7.  
  8. cout <<"Enter the your namr:";
  9. cin >> name;
  10.  
  11. cout << "welcom," << name << ",to c++ programming!"<< endl;
  12.  
  13. return 0;
  14.  
  15. }
  16.  
  17.  
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Enter the your namr:welcom,,to c++ programming!