C++ Taskbook Level 1.4
Explain the difference between the int
type and the float
type.
Print to the console all even numbers from 2
to 1000
.
Given a string:
std::string str = "abcde";
Loop through and output to the console all its characters one by one.
Two integers are given:
int num1 = 36;
int num2 = 12;
Get the remainder of dividing the first number by the second.
Given an integer containing the minute number from 0
to 60
:
int num = 30;
Determine which quarter of an hour this value falls into.
A two-digit number is given:
int num = 12;
Check that the second digit is greater than the first.