Discuss some specific examples in which you might use iteration.
You could use interation when you make a program for a game. When someone reaches a certain amount of money. The loop will end and the game will stop. Also iteration can be used when you need to use a variable and instead of typing in the number, you could use a loop.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment