C++ Taskbook Level 1.2

Задание 1

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

Задание 2

Given an integer, print the last digit of this number to the console.

Задание 3

Given an integer, print the first digit of this number to the console.

Задание 4

Given an integer, output to the console the sum of the first and last digits of this number.

Задание 5

Given an integer, output the number of digits in this number.

Задание 6

Given an integer, check whether it is even or not.

Задание 7

Given two strings, check that the first characters of these strings match.

Задание 8

Given a number:

cppint num = 10;

Check that this is a two-digit number.