234k views
0 votes
Reducing duplication of code is one of the advantages of using a loop structure. True/False?

User Timo Paul
by
7.6k points

1 Answer

1 vote

Answer:

True

Step-by-step explanation:

let's say we want to print "hello" 10 times.

instead of calling a function like print("hello"); in multiple lines we can use a loop to reduce the amount of times we repeat code

User Gjgjgj
by
8.0k points