Basic Exercises in Java #2

Below you will see others 5 Basic exercises solved with conditionals and loops, made in Java language.

6.- Read a number and show its square, repeat the process until a negative number is entered.

Example of Results in the Exercise Console 6

7.- Read numbers indicating if it is odd or even. And a 0 it ends.

Example of Results in the Exercise Console 7

8.- Read numbers and add them until a 0.

Example of Results in the Exercise Console 8

9.- Read numbers and calculate the mean. The process ends when reading a negative number.

Example of Results in the Exercise Console 9

10.- Read a number N and show the numbers of 1 a N.

Example of Results in the Exercise Console 10

Let's hope and these examples have been of great help.

Do not forget to follow us on social networks, to be aware of everything.

Follow Facialix on all his social networks:

Jesus Amaro

Leave a Reply

Your email address will not be published. Required fields are marked *

18 − five =