How Do Loops Improve Programming Efficiency?
Hello! This is my first time on BLURTIT. My prof. Asked me this question and I can't seem to find the answer to it. I need it before midnight. I'm not sure how this system works, I just came across it and decided to give it a try. Thanks!
2 Answers - Sort by: Date | Rating
Loops are basically types of control construct. Loops can be combined so that they are executed at the same time, thus improving the run-time efficiency. Loops save the time of the computers by setting a single code for recurring tasks. They are good because once they are compiled they run over and over again until they reach their limit. Hence resulting in improved efficiency.
0
0
Suppose to print 1 to 10 numbers
then u can write 10 statements which prints 1 to 10 number.
Now suppose u have to write 1 to 100
then ?
Will u write 100 statements for 1 to 100.
Ok if u can write 100 times
by copy past
But what about 1 to 1000000000000 times or conditional value or unknown value
So Ooooops are the Best
since it is best, it will definitely improve program efficiency
reduce length,size,time etc..
then u can write 10 statements which prints 1 to 10 number.
Now suppose u have to write 1 to 100
then ?
Will u write 100 statements for 1 to 100.
Ok if u can write 100 times
by copy past
But what about 1 to 1000000000000 times or conditional value or unknown value
So Ooooops are the Best
since it is best, it will definitely improve program efficiency
reduce length,size,time etc..
0
0
- What Is An Attribute In Java?
- How About Links Of London?
- When You Create A New COM Component In Visual Basic, You Choose The Following Template?
- Why Do We Use Public Static Void Main In Java?
- What Parts Of Wordpad?
- What Do You Mean By Index?
- What Is #include?
- What Is Indexed File Organization?
- How The Performance Of Database?
- How Is That The Additional Hardware Affect The Data Base Management System?
- How Do You Automate Starting And Shutting Down Of Databases In Unix?
- How Design An Algorithm For The SIMD Computer To Calculate The Sum Of An Array (A) Of 8 Elements. Assume That Element Ai Is Stored In The Local Memory Of PEi, Where I=1,2,3,.......4?
- Do I Have To Write A Main Method In Every Class I Create?Why?
- Do I Have To Write A Main Method In Every Class I Create?
- What Is Centralize Database Management System?
- Why We Indicate FF As 0FF In Program?
- When To Apply For Css?
- How Do I Enable Java On My I465?
- What Are Key Features Of Procedural Programming?
- What Is Conceptual Methodology?
- What Is Hierarchy Or Structure Of Database?
- Explain How Records And Related Records Are Deleted To Ensure The Integrity?
- I Am Non IT Professionals And Now I Want To Join MS Dynamics CRM. I Learnt Tha C# And ASP.net Is Must For That?
- What Is The Definition Of Hierarchical?
- What Is Rule Based Query?
- Why Does Using Arrays With Loops Improve Program Efficiency?
- Why Are Loops So Essential To Programming?
- How To Improve The Efficiency Of Labour In An Organisation?
- How Do Archiving Solutions Improve Operational Efficiency?
- Do You Think Lean Production Methods Would Help Improve Efficiency In The Factory?

New Comment - Comments are editable for 5 min.