My Computer Tips was launched in 2015 and provides information for common tasks in various Linux distributions and other computer related subjects.
My Computer tips has over 290 tutorials and tips.
If you found the information on My Computer Tips useful, please consider sharing our site details.
ID: 234
Category: C++
Added: 19th of December 2020
Updated On: Tutorial updated and rechecked on 21st of November 2024
Views: 3,422
The following script in C++ asks the user to enter their name and age and then displays the results.
Two variables are created, string to store the name, and int (integer) to store the age.
Create a new file, then copy and paste the code below. Save the file as inputoutput.cpp
Linux Forums
Linux Gaming
Other Linux / Computer Sites
Other Sites / Shopping