std::cin, which stands for “character input”, reads user input from the keyboard.
Here, the user can enter a number, press enter, and that number will get stored in
A variable refers to a storage location in the computer’s memory that one can set aside to save, retrieve, and manipulate data.
C++ supports different types of arithmetic operators that can perform common mathematical operations:
%modulo (yields the remainder)
int is a type for storing integer (whole) numbers.
double is a type for storing floating point (decimal) numbers.
Chaining the Output
std::cout can output multiple values by chaining them using the output operator
Here, the output would be
char is a type for storing individual characters. Characters are wrapped in single quotes
std::string is a type for storing text strings. Strings are wrapped in double quotes
bool is a type for storing
false boolean values.