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