+ 1

Write a program to insert 3 number and print the largest of three ( use only if statements)

29th Aug 2018, 4:26 PM
Deepak kumar
4 Antworten
+ 7
print((lambda n: "odd" if n%2 else "even")(int(input())))
29th Aug 2018, 5:14 PM
Eduardo Petry
Eduardo Petry - avatar
+ 6
print((lambda a,b,c: a if a>b>c else b if b>c else c)(int(input()),int(input()),int(input())))
29th Aug 2018, 4:46 PM
Eduardo Petry
Eduardo Petry - avatar
+ 2
write a program to insert a number and check whether a given number is odd or even (use if-else statement)
29th Aug 2018, 5:06 PM
Deepak kumar
0
Answer
24th Oct 2023, 10:08 AM
Pio Mark
Pio Mark - avatar