-
Notifications
You must be signed in to change notification settings - Fork 0
/
largest.py
74 lines (60 loc) · 1.06 KB
/
largest.py
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<<<<<<< HEAD
def largest1(m,n,k):
if m > n and m > k:
return m
if n > m and n > k:
return n
if k > n and k > m:
return k
#print(largest1(60,56,200))
def largest2(m,n,k):
result = 0
if m > n and m > k:
result = m
elif n > m and n > k:
result = n
elif k > n and k > m:
result = k
return result
#print(largest2(60,56,200))
def largest3(m,k,n,):
largest = m
if n > k :
largest = n
elif k > n:
largest = k
return largest
#print(largest2(67,98,23))
def product(a, b):
return a*b
=======
def largest1(m,n,k):
if m > n and m > k:
return m
if n > m and n > k:
return n
if k > n and k > m:
return k
#print(largest1(60,56,200))
def largest2(m,n,k):
result = 0
if m > n and m > k:
result = m
elif n > m and n > k:
result = n
elif k > n and k > m:
result = k
return result
#print(largest2(60,56,200))
def largest3(m,k,n,):
largest = m
if n > k :
largest = n
elif k > n:
largest = k
return largest
#print(largest2(67,98,23))
def product(a, b):
return a*b
>>>>>>> a6e4089dddb018f8775d6b5aac73532c34e11925
#print(product(3, 3))