Skip to content
Computer Science
Share
Explore

Decision making

BLAH BLAH 15 july

a int(input(”Enter fist number”)
b int(input(”Enter 2nd number”)
if
a equals b
print(”numbers are equal”)
elif
a greater than b
print(”number 1 is greater”)
a less than b
print(”number 2 is greater “)

a=int(input("Enter any digit : ")) if a==0: print("Sunday") elif a==1: print("Monday") elif a==2: print("Tuesday") elif a==3: print("Wednesday") elif a==4: print("Thursday") elif a==5: print("Friday") elif a==6: print("Saturday") else: print("Wrong input.\nPlease try again.")
ewfn7l7yg3
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.