summaryrefslogtreecommitdiff
path: root/progs/a760.py
blob: 2689e9330d6f5d8654e87dc1d02643851750c2a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def median_numbers(a,b,c):
 if a > b:
    if a < c:
        median = a
    elif b > c:
        median = b
    else:
        median = c
 else:
    if a > c:
        median = a
    elif b < c:
        median = b
    else:
        median = c
 return median