Flowchart Iteration 1
Flowchart Iteration 1
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