Skip to content

Instantly share code, notes, and snippets.

@cristinelpopescu
Created March 8, 2021 13:38
Show Gist options
  • Save cristinelpopescu/3edc9f941315fc6fa0dc15d5ec67a869 to your computer and use it in GitHub Desktop.
Save cristinelpopescu/3edc9f941315fc6fa0dc15d5ec67a869 to your computer and use it in GitHub Desktop.
this program calculates average of three numbers
#average of three numbers
x = input("enter first number: ")
y = input("enter the second number: ")
z= input("enter the third number: ")
average = (float(x) + float(y) + float(z)) / float(3)
print("your average is: ", average )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment