C++ Taskbook Level 1.4

Задание 1

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

Задание 2

Print to the console all even numbers from 2 to 1000.

Задание 3

Given a string:

cppstd::string str = "abcde";

Loop through and output to the console all its characters one by one.

Задание 4

Two integers are given:

cppint num1 = 36;
int num2 = 12;

Get the remainder of dividing the first number by the second.

Задание 5

Given an integer containing the minute number from 0 to 60:

cppint num = 30;

Determine which quarter of an hour this value falls into.

Задание 6

A two-digit number is given:

cppint num = 12;

Check that the second digit is greater than the first.