use cin and cout in c++ code example Example: C++ cin cout int age; cout << "How old are you ?" << endl; cin >> age;