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