A loop is used to avoid repetitive writing of the same function in the code.

Trang Esther

New member
A loop is used to avoid repetitive writing of the same function in the code.
A. True
B. False
 
Answer: a
Explanation: The purpose of using loops is to avoid writing the same line multiple times. The same line may be a particular function which computes a certain value. For the sake of accuracy, we may run the function multiple times, within a loop.
 

Tìm kiếm

Back
Top