Java Taskbook Level 1.7

Задание 1

Find the sum of all odd integers between 1 and 100.

Задание 2

Write code that will print the first N powers of two.

Задание 3

Three lines are given:

javaString str1 = "123";
String str2 = "456";
String str3 = "789";

Add the values ​​of these rows as integers.

Задание 4

Given a number:

java12345

Turn it over:

java54321
Задание 5

Given a number:

java12345

Find the sum of the digits of this number.

Задание 6

Given a fractional number containing the number of gigabytes:

javafloat gb = 35.24;

Convert this value to megabytes, kilobytes, and bytes.