the-honk/school/gcse/year 9/python challenges/2 - Average.py

4 lines
203 B
Python
Raw Normal View History

2021-05-28 20:38:55 +00:00
num1 = int(input('Input your first number.'))
num2 = int(input('Input your second number.'))
average = str((num1 + num2) / 2)
print('The average of ' + str(num1) + ' and ' + str(num2) + ' is ' + average)