Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
198 views
in Computer by (44.9k points)
closed by

Example of Iteration.

1 Answer

+1 vote
by (45.2k points)
selected by
 
Best answer

In programming, loops follow the iteration depending on the condition. Every loop iterates at least once if not more.

Consider a program to print all the natural numbers from 1 to 100.

As you can see in the flow chart the flow of the program will repeat or iterate for each number from 1 to 100.

For every single iteration it will check for the condition and take the appropriate workflow. It will repeat the block of code for multiple times till the specified condition is achieved.

Flowchart to print natural number from 1 to 100

Example of Iteration

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...