Professional Documents
Culture Documents
Modulus Operation
Modulus Operation
LABORATORY ACTIVITY #3
PROFESSOR: FREDDIE M. TAMAYAO, MENG-CPE, CISSP
NAME: Ivan Webster J. Razo DATE: September 17, 2020 TIME: ___10:13 AM___
Start
a=1
Initialization
Condition
Is a <= False
50?
True
Repeated False
a%2 == 0
Action
Output var. a
Stop
a++
Updating or Increment
ACTIVITY PROBLEM #3:
Flowchart to find odd numbers between 1 to n when there is a positive integer.
Start
Variables odd
and n
n=1 Initialization
Is n>0?
Condition
odd= n%2
Repeated False
if odd != 0
Action
True
Output var.
odd
True
n++
Stop
Updating or Increment