x= int(input("Enter the number of x:")) y=int(input("Enter the number of y:")) print(str(x)+"=="+str(y)+"="+str(x==y)) print(str(x)+"!="+str(y)+"="+str(x!=y)) print(str(x)+">"+str(y)+"="+str(x>y)) print(str(x)+"<"+str(y)+"="+str(x<y)) print(str(x)+">="+str(y)+"="+str(x>=y)) print(str(x)+"<="+str(y)+"="+str(x<=y)) output : Enter the number of x:6 Enter the number of y:4 6==4=False 6!=4=True 6>4=True 6<4=False 6>=4=True 6<=4=False
a=int(input("enter the number")) b=int(input("enter the number")) sum=a+b sub=a-b mul=a*b div=a/b module=a%b expo=a**b print("sum",sum) print("sub",sub) print("multiplication",mul) print("division",div) print("module",module) print("exponential",expo) output- Enter the number :10 Enter the number :8 sum 18 sub 2 multiplication 80 division 1.25 module 2 exponential 100000000 >>>
Comments
Post a Comment