As the title says I want to remove the elements in my array that contain 0.
When the user prompt an integer that's the same the program rejects the user input and will automatically put a 0 there instead but I want it to be removed.
Here is my current output in an array of 20
25 35 50 23 95 55 9 85 45 0
97 56 0 33 75 0 101 86 100 0
and here is my desire output with the same user prompt
25 35 50 23 95 55 85 45 97
56 33 75 86 100
Aucun commentaire:
Enregistrer un commentaire