IT 215 Week 3 DQ 2

**********************************************************

IT 215 Entire Course Link

https://uopcourses.com/category/it-215/

**********************************************************

Question:
Post your response to the following questions: Explain when you would use a while loop rather than a for loop and vice versa. Provide an example of one such instance. How are looping statements different from selection statements?

RESPONSE 1
A while loop is used when we want to test a program a certain amount of times and choose when to quit the program. We used while loops in our checkpoint assignment. When we run the program; the program keeps asking for employee information, until we enter stop to exit the program.
Powered by