Skip to content

Instantly share code, notes, and snippets.

@sanikamal
Created May 13, 2020 09:07
Show Gist options
  • Save sanikamal/36cc231f615fc806103a434f1fea6dd9 to your computer and use it in GitHub Desktop.
Save sanikamal/36cc231f615fc806103a434f1fea6dd9 to your computer and use it in GitHub Desktop.
Python Program to find sum and average of three number
a = input('Enter 1st Number : ')
b = input('Enter 2nd Number : ')
c = input('Enter 3rd Number : ')
a = int(a)
b = int(b)
c = int(c)
sum = a + b + c
avg = sum / 3
print('Sum of all 3 Numbers is {}'.format(sum))
print('Average of all 3 Numbers is {}'.format(avg))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment