# Write a program to demonstrate relational operator


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


Comments

Post a Comment

Popular posts from this blog

# write a program to perform airthmatics operation