When I do exercises, I always use for loops (for(int i = 0; i < n; i++)). But sometimes I got wrong with them, I have tried in many ways to fix, but it ran only when I turn the "i++" in for loop to "++i". I wonder when can we use "i++" and when "++i"?
Aucun commentaire:
Enregistrer un commentaire