Last active
April 20, 2017 13:43
-
-
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.
This file contains 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
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