Write a program in JAVA that will generate integers from 1 to 10 until the sum of these numbers is at least 50, or the same number is generated twice in a row. Output all numbers and the final sum.
I can generate numbers between 1 to 10 but I need help on the other parts. Thank you
Aucun commentaire:
Enregistrer un commentaire