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

User Timo Paul
by
8.2k 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.5k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.