Java Taskbook Level 1.6

Задание 1

Find the sum of all integers from 1 to 100.

Задание 2

Three symbols are given:

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

Add the values ​​of these symbols as integers.

Задание 3

Given an integer containing the number of megabytes:

javaint mb = 35;

Convert this value to bytes.