how to make programms of computer of iteratin through loops
Answers
Answered by
0
Iteration means repetition or looping over a portion of a program. For solving problems by a computer, it becomes very often necessary to loop over a portion of a program, again and again, so that a desired goal is achieved. For example, marks sheets for 30 students of a class are to be prepared by taking help of a computer program. A markssheet preparing procedure for every student will be the same but that procedure is got to berepeated 30 times to complete the total job. Thus the marks-sheet processing portion is gotto be repeated as many times as there are number of students. For the marks-sheets case, therepetition will be carried out for a known number (equal to the number of students) of times.Theforloop is generally usedwhen it is known in advance how many times a loop is gotto be executed
Similar questions