+ 2

The (for) loop

The (for) loop is better than another loops.What is your opinion?

2nd Dec 2017, 12:15 PM
vahid
vahid - avatar
4 Answers
+ 2
they are somehow diffren. they are both useful.
2nd Dec 2017, 3:40 PM
Mitra
Mitra - avatar
+ 4
the for loop is nothing but a while loop in disguise!
2nd Dec 2017, 12:50 PM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 1
for loop is used when you know how many times the loop must occur. You cannot use it for everything. Type of loop to be used is according to the situation at hand.
2nd Dec 2017, 12:28 PM
User
+ 1
Thanks for the comment
9th Dec 2017, 2:13 PM
vahid
vahid - avatar