Java Taskbook Level 2.2
Find the arithmetic mean of all integers from 1
to 100
.
Given a number:
int num = 12345;
Find the sum of the first and last digits of this number.
Given an array of integers:
int[] arr = {1, 2, 3, 4, 5};
Find the sum of the elements of this array.
Given some integer:
int num = 12345;
Output all its digits from the end to the console.