C++ Taskbook Level 1.6
Задание 1
Tell me how many bytes a number of type long takes.
Задание 2
Find the sum of all integers from 1 to 100.
Задание 3
Three symbols are given:
cppchar chr1 = '1';
char chr2 = '2';
char chr3 = '3';
Add the values of these symbols as integers.
Задание 4
Given an integer containing the number of megabytes:
cppint mb = 35;
Convert this value to bytes.
Задание 5
Two numbers are given:
cppfloat num1 = 36;
float num2 = 12;
Find out what percentage the first number is of the second.