C++ Taskbook Level 1.3

Задание 1

Explain the difference between the short type and the int type.

Задание 2

Print to the console all integers from 1 to 100.

Задание 3

Given a string, if there is more than one character in the string, print the second to last character of the string to the console.

Задание 4

Given an integer, check that the first and last digits of this number match.

Задание 5

Two integers are given:

cppint num1 = 36;
int num2 = 12;

Print the larger of these numbers to the console.

Задание 6

Given a string containing an integer:

cppstd::string str = "123";

Convert this string to a number:

cppunsigned int 123
Задание 7

Given an integer containing a month number from 1 to 12:

cppunsigned int num = 1;

Determine what season this month falls in.