lundi 15 novembre 2021

using a for int loop that iterates random numbers until it reaches a certain goal (java)

I am trying to find a for int loop that iterates random numbers until it reaches the goal of 10 million.

My assignment states that it needs the total number of contributions needed to meet the goal of 10 million dollars.

I want the for int loop to stop generating random numbers when it reaches the sum of 10 million.




Aucun commentaire:

Enregistrer un commentaire