Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lessons/flowchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ so lets see an example:

## **Understanding Loops**

So let suppose we have to print numbers from 1 to n. then how do we do it?
Obivously we will start from 1 and then after priting 1 we have to think the next number of the sequence, so we'll basically add 1 in the previous number and we'll get the next number, this process will keep repeating until we reach n. and when we reach n then we have to check that we don't write the number which comes after the n. Here you will see you are repeating the process and a loop is formed.
So let's suppose we have to print numbers from 1 to n. Then how do we do it?
Obviously we will start from 1 and then after printing 1 we have to think of the next number in the sequence, so we'll basically add 1 to the previous number and we'll get the next number. This process will keep repeating until we reach n. and when we reach n then we have to check that we don't write the number which comes after the n. Here you will see you are repeating the process and a loop is formed.

eg:

Expand Down