6 of 100 menu

C++ Taskbook Level 1.6

Tell me how many bytes a number of type long takes.

Find the sum of all integers from 1 to 100.

Three symbols are given:

char chr1 = '1'; char chr2 = '2'; char chr3 = '3';

Add the values ​​of these symbols as integers.

Given an integer containing the number of megabytes:

int mb = 35;

Convert this value to bytes.

Two numbers are given:

float num1 = 36; float num2 = 12;

Find out what percentage the first number is of the second.

enru