Challange, trying to reslove

+1 Vaibhav Patel · November 13, 2014
Hi all,
Need your help in trying to solve below issue.
I want,    user to input 3 values e.g. a , b ,c
Value should be displayed on the screen to the user with a message
first value = a
second value = b
third value = c
average is = -------
addition is = --------
maximum is = ---------
I can get maximum number out of them , but not in a position to find the other two ( addition and average).
please help guys.

:silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly::silly:


Post a Reply

Replies

Oldest  Newest  Rating
0 Vaibhav Patel · November 14, 2014
Huhhh,
Don't believe, my brain started to work on Friday. LOL

x = input (int)

y = input (int)

z = input (int)

a = (int(x) + int(y) + int(z))

print ("Total value is  ",a)
print ("Avegare value is ", a/2)
print ("Max number is", (max(x , y, z)))
  • 1

Python

107,053 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator