summaryrefslogtreecommitdiff
path: root/progs/a627.py
blob: a96e17c046dff3e357d7c11936beaf5659f3188a (plain)
1
2
3
4
5
6
7
8
def dog_age(h_age):
 if h_age < 0:
 	exit()
 elif h_age <= 2:
	 d_age = h_age * 10.5
 else:
	 d_age = 21 + (h_age - 2)*4
 return d_age