You are on page 1of 5

START

X=0

Increment X by 1
X=X+1

Print X

YES

IS X<20
?

NO

END
START

X=0

Increment X by 1
X=X+1

NO
IS X<=20
?

YES
END

Print X
START

X=0

Increment X by 1
B
X=X+1

IS X<=20
?

A
END

YES
A

B Print X
Find out the Maximum or Minimum number from two
numbers.

Using Two Variable: A and B


A=34, B=78

If A<B then Print “A is Minimum and B is Maximum number”


Else
Print “A is Maximum and B is Minimum number”

You might also like