PROGRAM : -
a = int(input("Enter First integer value : "))
b = int(input("Enter Second integer value : "))
print("Sum of",a,"and",b,"is:",a+b)
print("Difference of",a,"and",b,"is:",a-b)
print("Product of",a,"and",b,"is:",a*b)
print(a,"to the power",b,"is:",a**b)
if b == 0:
print(a,"when divided by",b,"gives infinity")
else:
print("Division of",a,"and",b,"is:",round(a/b,4))
a = int(input("Enter First integer value : "))
b = int(input("Enter Second integer value : "))
print("Sum of",a,"and",b,"is:",a+b)
print("Difference of",a,"and",b,"is:",a-b)
print("Product of",a,"and",b,"is:",a*b)
print(a,"to the power",b,"is:",a**b)
if b == 0:
print(a,"when divided by",b,"gives infinity")
else:
print("Division of",a,"and",b,"is:",round(a/b,4))
VIDEO LINK : -
No comments:
Post a Comment
Note: only a member of this blog may post a comment.