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