Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

write a program that accepts your personal information from keyboard and displays back to screen ?

+1 vote
asked Apr 10, 2019 by aklilu

1 Answer

0 votes
answered Apr 12, 2019 by micah hendricks (140 points)

hi! assuming you're using C++, try declaring a string variable and then outputting that variable.

ex]

string username;
cout << "Enter your name: ";
cin >> username: //this is where the user inputs their name
cout << endl << "Hi " << username << endl;
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...