Almost all programming languages provide a concept called a loop , which helps execute one or more
Fantastic news! We've Found the answer you've been seeking!
Question:
Almost all programming languages provide a concept called a loop, which helps execute one or more statements up to a desired number of times to accomplish one or more tasks. For example, you may use a loop statement to write a program to print out the assignment grade for all of the students in a large class. Give an example where you want to use a loop statement to accomplish a task in the program, and answer the following questions: Assume that you are the programmer hired by a bank to write a program for its automated teller machines (ATM).
- Can you accomplish the same task without using a loop statement in that example? Why or why not?
- What are the benefits of using a loop statement for that example?
Related Book For
Posted Date: