11 of 100 menu

Java Taskbook Level 2.1

Given an array of integers:

int[] arr = {1, 2, 3, 4, 5};

Print the elements of this array to the console.

Given an array of strings:

String[] arr = {"ab", "cd", "ef"};

Print the first characters of the elements of this array to the console.

Given some integer:

int num = 12345;

Find the sum of all its even digits.

Given some integer:

byte num = 12;

Find the factorial of this number.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline