Home TechnologyProgramming Subscribe to RSS

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!

Answer Question

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

    Aicha  

    answered 2 years ago

      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..



      0 0

      Naveedanj  

      answered 2 years ago

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International