I am creating a programme that is rolling two dices at the same time using a random. The purpose of the programme is to show all the numbers that were ransomized from the two dices in two different arrays and then cound how many ones and how many sixes. the first array an loop works fins but the other one looks nestled. It is like I've somehow created a loop inside the loop because when I for example enter 2 dice rolles, the second arrray shows 4. When I enter 3 it shows 9 and so on. I can't find the problem. I want the second dice to be rolled as many times as the first one.
""when running the program"" ""code
"" part 1 enter code here
part 2
Aucun commentaire:
Enregistrer un commentaire