// File: iotest3.cpp // Simple I/O demonstration using << and >>. #include using namespace std ; int main() { string str ; int n ; cout << "Enter your name: " ; getline(cin, str) ; cout << "Enter your age: " ; cin >> n ; cout << str << " is " << n << " years old." << endl ; }