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