mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-01-27 01:01:59 +00:00
piscine 00
This commit is contained in:
8
00/ex2/ft_harvest_total.py
Normal file
8
00/ex2/ft_harvest_total.py
Normal file
@@ -0,0 +1,8 @@
|
||||
def ft_harvest_total():
|
||||
print("Day 1 harvest:", end=" ")
|
||||
d1 = int(input())
|
||||
print("Day 2 harvest:", end=" ")
|
||||
d2 = int(input())
|
||||
print("Day 3 harvest:", end=" ")
|
||||
d3 = int(input())
|
||||
print("Total harvest:", d1 + d2 + d3)
|
||||
Reference in New Issue
Block a user