diff options
Diffstat (limited to 'progs/a760.py')
-rw-r--r-- | progs/a760.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/progs/a760.py b/progs/a760.py new file mode 100644 index 0000000..2689e93 --- /dev/null +++ b/progs/a760.py @@ -0,0 +1,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
\ No newline at end of file |