Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

St

ep(
1):
star
t

st
ep(
2):
InputonenumberSayx

st
ep(
3):
If(
x=0)t
heni
nputt
hreenumber
ssayA,
B,C

Endi
f

st
ep(
4):
if(
A>B)and(A>C)t
henpr
intAi
slar
gestVal
ue

El
sei
f(B>A)and(
B>C)t
hepr
intBi
slar
gestv
alue

El
sepr
intCi
slar
gestv
alue

Endi
f

Endi
f

st
ep(
5):
if(
A<B)and(
A<C)t
henpr
intAi
ssmal
l
estVal
ue

El
sei
f(B<A)andI
(B<c)t
henpr
intBi
ssmal
l
estv
alue

El
sepr
intci
ssmal
l
estv
alue.

Endi
f

Endi
f

St
ep(
6):Av
erge=(
A+B+C)
/3

st
ep(
7):
pri
ntt
heav
erage

st
ep:
(8)st
op

You might also like