0% found this document useful (0 votes)
19 views7 pages

Buliding Blocks of Alg (Mod 1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views7 pages

Buliding Blocks of Alg (Mod 1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Example: Algorithm to print numbers from 1 to 10.

1. Start
2. Initialize n=0
3. Increment n=n+1
4. Print n
5. If n<=10 then goto step 3
6. Else goto step 7
7. Stop
Flowchart:

Start

n=0

n= n+1

Print n

Yes
If

Stop

You might also like