//Author: Justin C. Miller 
// Standard Input and Output
// Standard Input will be gathered from the keyboard
// Standard Output will be sent to the screen

int main()
{
	/* FIRST OUTPUT */

	// cout followed by << sends output to the screen
	cout << "Hello World!" ;

	// the following will print out the value of a which is 7
	int a = 7 ;
	cout << a ;

	// multiple << can result in multiple things being sent
	// to the screen to display
	cout << "a = " << a ;

	// the endl starts a new line
	cout << "Line1" << endl << "Line2" << endl ;

	// \n has the same effect as endl, starting a new line
	cout << "Line1 \n" << "Line2 \n" << endl ;

	// an equation can also be printed
	// the following would print 11 (not 7+4)!!!!
	cout << ( 7 + 4 ) << endl ;

	// the following would print 7+4 (not 11)!!!!!
	cout << "(7 + 4)" << endl ;

	/* now INPUT */

	// cin followed by >> reads in from the keyboard
	// a value is read in, and terminated when a user
	// hits the enter key

	// the following reads an integer value into a
	// from the user, then prints it
	int a ;
	cout << "Please enter a number:" ;
	cin >> a ;
	cout << "Your number was:" << a << endl ;

	// putting multiple >> >> will allow the user to enter
	// multiple items
	int b, c, d ;
	cout << "Please enter 3 numbers:" ;
	cin >> b >> c >> d ;
	cout << "Your numbers were: " << b << c << d ;

	// the same can be done, thus with a character too
	char j ;
	cout << "Please enter a letter" << endl ;
	cin >> j ;
	cout << "Your letter was..." << j << endl ;

	return 0 ;
}
