Forezz

ДЗ 9 Н 1

Jul 24th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1.  # _*_ coding: utf-8 _*_
  2. def min_num(i,min):
  3.     if i >=0:
  4.         if a[i] < min:
  5.             min = a[i]
  6.         min_num(i - 1, min)
  7.     else:
  8.         print(min)
  9.        
  10. a = list(map(int, input().split()))
  11. i = len(a) - 1
  12. min = a[i]
  13. min_num(i, min)
Advertisement
Add Comment
Please, Sign In to add comment