C Plus Plus Language, Beginners Guide, Programming Journey, Productivity, Beginner.
{ int age; cout << "Enter your age"; // Prompts user to input value cin >> age; // Assigns user input to variable age } Visit the original article on Educative to test your knowledge with an interactive quiz! Wrapping up and next steps Congratulations! You now know nine basic C++ statements.