lundi 18 mars 2019

Java: repetition plot

Problem 02 - Having plotted your starts on the console. We want you to calculate the average of stars given all the random numbers. The average should then be printed on the console with it's respective number of stars. The average value should be rounded in order to avoid breaks on your code.

Number (7): *******

Number (3): ***

Number (6): ******

Number (4): ****

Number (8): ********

Number (4): ****

Number (0):

Number (7): *******

Number (3): ***

Number (9): *********

Average (5): *****




Aucun commentaire:

Enregistrer un commentaire