Skip to content

Instantly share code, notes, and snippets.

@abu-yusuf-dev
Last active April 20, 2017 13:43
Show Gist options
  • Save abu-yusuf-dev/fb708a40920b5c8eed328f137033ab21 to your computer and use it in GitHub Desktop.
Save abu-yusuf-dev/fb708a40920b5c8eed328f137033ab21 to your computer and use it in GitHub Desktop.
here , user will take 5 integer value and first two value will be the less than last two values and both will be compared to the middle value......I have tired to solve this.
a=input().split(" ")
x,y,z,p,q=a
r=len(a)
if int(x)<int(z) and int(y)<int(z):
if int(p)>int(z) and int (q)> int (z):
c=(int(x)+int(y)+int(z)+int(p)+int(q))/r
print('Avarage is: %.2lf' %c)
else:
print("Sorry Wrong Input")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment