0% found this document useful (0 votes)
12 views3 pages

Flowchart Iteration 1

Uploaded by

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

Flowchart Iteration 1

Uploaded by

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

Problem #1 (iteration)

Draw a flowchart that will count from 1 to 10, and print each
number counted (value of n is set to 1)

Start

n=1

L
read n

Output:
print n
1
2
No Yes 3
4
is 5
n=10? 6
7
n=n+1 8
Stop
9
10

L
Problem#2
Draw a flowchart that will count from 1 to 10, and print each
number counted. (Value of n is set to 0)

Start

n=0

L
read n

Output:
No Yes
1
is
2
n=10? 3
n=n+1 4
Stop 5
6
7
8
print n
9
10

L
Draw a flowchart that will only print the odd numbers from 1 to 100.

Start

n=1

L
read n

No Yes
c
is n=100?

q=n%2
Stop

No Yes
c
is
q=0.5?
n=n+1 print n

L n=n+1

You might also like