A program calls a function to calculate an area three times with different inputs. What is the main advantage of using the function?
Tap the card to see the answer
Answer
A program calls a function to calculate an area three times with different inputs. The main advantage of using the function is that the code is written once and reused.
Lock it in
Memora is powered by AI. If anything looks wrong, double-check it with your teacher or textbook.