0

Hello, can you tell me how to make the code stop after running the task

https://code.sololearn.com/cpwco82jK237/?ref=app

17th May 2020, 8:37 AM
E.Q
E.Q - avatar
9 Respuestas
+ 2
https://code.sololearn.com/cL7oB4v6lBZE/?ref=app
17th May 2020, 8:45 AM
Abhay
Abhay - avatar
+ 1
Can you explain more, what are you looking for in that code?
17th May 2020, 8:41 AM
Jayakrishna 🇮🇳
17th May 2020, 8:56 AM
Abhay
Abhay - avatar
+ 1
Removed foreach loop becoz it is cause of repeating data
17th May 2020, 9:01 AM
Abhay
Abhay - avatar
+ 1
Foreach reads all array elements one by one.. What do you mean by control repeations here.. There only repeated outputs because of your code not because of foreach so how you actually expexting, say with sample output, if you need any...
17th May 2020, 10:59 AM
Jayakrishna 🇮🇳
0
Euromillions of PT, I want the results not to repeat.
17th May 2020, 8:58 AM
E.Q
E.Q - avatar
0
I fixed that check it out
17th May 2020, 9:00 AM
Abhay
Abhay - avatar
0
thanks, has any way to control the number of repetitions using forech
17th May 2020, 9:09 AM
E.Q
E.Q - avatar
0
thanks, you guys helped me a lot, now I just have to make "stars" present only the last two numbers
17th May 2020, 6:16 PM
E.Q
E.Q - avatar