Úroveň 2.3 úloh Jazyka Java
Je dán pole s celými čísly:
int[] arr = {1, 2, 3, 4, 5};
Najděte součet čtverců prvků tohoto pole.
Je dán pole s celými čísly:
int[] arr = {1, 2, 3, 4, 5};
Najděte aritmetický průměr tohoto pole.
Je dán pole:
int[10] arr;
Pomocí cyklu naplňte toto
pole celými čísly od
1 do 10.