C++ Taskbook Level 1.7
Задание 1
Find the sum of the squares of all odd integers in the range from 1 to 100.
Задание 2
Write code that will print the first N powers of two.
Задание 3
Three lines are given:
cppstd::string str1 = "123";
std::string str2 = "456";
std::string str3 = "789";
Add the values of these rows as integers.
Задание 4
Given a string:
cppstd::string str = "123456789";
Find the sum of the digits in this line.
Задание 5
Given a fractional number containing the number of gigabytes:
cppfloat gb = 35.24;
Convert this value to megabytes, kilobytes, and bytes.