console input c++ code example Example: how to get input from the console in c++ int age; cin >> age;