0

How to make different codes of for and while loop

8th Jul 2024, 5:26 PM
Katana 2.0
Katana 2.0 - avatar
2 odpowiedzi
+ 2
Katana 2.0 , Not clear what you are asking for. Can you please rework your question: > Which programming language you are talking about > Give some more details what the input is and what you expect as output
8th Jul 2024, 5:44 PM
sandra
sandra - avatar
0
I think I understand the less then half question.... for (iterator, condition, increment/decrement) { body } while condition { body, increment/decrement } be very careful! you can easily code an infinite while loop! I hope this helps
8th Jul 2024, 7:44 PM
Mihaly Nyilas
Mihaly Nyilas - avatar