//* Using various data (variable) types *

#include <iostream> using std::cin; using std::cout; using std::endl; int main() { char a, b, c; int year; // see the textbook about different variable types and their meaning cout << "What year is it, please? "; cin >> year; cout << "What are your three letter initials? "; cin >> a; cin >> b; cin >> c; // you can combine inputing more variables in one line // cin >> a >> b >> c; cout << "\nHello " << a << b << c << ", " // no semicolon here! << year << " is a great year for studying!\a" << endl; // "\n" is equivalnet to endl and it makes cursor go to the new line // after entering a value you hit enter and make it go to the new line too return(0); }