New course! Every coder should learn Generative AI!
Try a free lesson0
If you're talking about loop counter, then integer is most favourable. Float has issue with precision, so, not a good idea. Boolean only knows true or false, we can't increment or decrement boolean.
If you meant something else, then explain clearly in your thread Description.