vendredi 6 décembre 2019

Adding Random numbers in Java [closed]

I have a project that requires me to list 100 random numbers from 1-5 and calculate and print their sum. The sum cannot include any odd number and if the random generator prints 3, the code is supposed to stop. I cannot figure out how to add the numbers with the restrictions I've been given. Please help




Aucun commentaire:

Enregistrer un commentaire