Step I Start
Step II Input N
Step III If N%3=0 then go to step IV
Else
Print “Enter another number” : Go to step II
Step IV If N%6=0 then
Print N
Else
Print “Another number” : Go to step II
Step V End
Step II Input N
Step III If N%3=0 then go to step IV
Else
Print “Enter another number” : Go to step II
Step IV If N%6=0 then
Print N
Else
Print “Another number” : Go to step II
Step V End