Created
March 8, 2021 13:38
-
-
Save cristinelpopescu/3edc9f941315fc6fa0dc15d5ec67a869 to your computer and use it in GitHub Desktop.
this program calculates average of three numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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