/* Filename: iotest.cpp Author: Br. David Carlson Date: January 4, 2000 Modified: June 26, 2000; August 16, 2001; September 1, 2009 This program asks the user to enter some values and then echo prints them. Tested with: Microsoft Visual C++ 2008 g++ under Linux */ #include using namespace std; int main(void) { int Age; float Gpa; char Last, First; cout << "Enter your age (as an integer): "; cin >> Age; cout << "Enter your grade point average (as a real): "; cin >> Gpa; cout << "Enter the first letter of your last name: "; cin >> Last; cout << "Enter the first letter of your first name: "; cin >> First; cout << endl << "Your initials are: " << First << Last << endl; cout << "Your age is: " << Age << endl; cout << "Your grade point average is: " << Gpa << endl << endl; return 0; }