-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmax_0f_3.py
More file actions
47 lines (33 loc) · 962 Bytes
/
Copy pathmax_0f_3.py
File metadata and controls
47 lines (33 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
a = int(input("Enter First Number:\n"))
b = int(input("Enter Second Number:\n"))
c = int(input("Enter Third Number:\n"))
print(" Largest Number:",end=" ")
if a >= b:
if a >= c:
print(a)
else:
print(c)
else:
if b >= c:
print(b)
else:
print(c)
"""
a = int(input("Enter First Number: "))
b = int(input("Enter Second Number: "))
c = int(input("Enter Third Number: "))
if a==b==c:
print("all value are equal")
if a==b and b<c:
print ("a and b is equal and c is greater than a and b ")
if b==c and b<a:
print ("c and b is equal and a is greater than c and b ")
if a==c and c<b:
print ("a and c is equal and b is greater than a and c ")
elif a >= b and a >= c:
print(a ,"is Larger than ",b ," and ",c)
elif b >= a and b >= c:
print("Largest number is:", b)
elif c >= a and c >= b:
print("Largest number is:", c)