February 15, 2021 Write a python program to input the value of x and n and print the sum of the following series:
Didn't defined the code for equal to....
ReplyDeleteSo correct it ......👍👍
Bro it's only for greatest if you want equal to then
Deletea=int(input("ent a"))
b=int(input("ent b"))
if a>b:
print("a>b",a,">",b)
elif a==b:
print("a=b",a,"=",b)
else:
print("b>a",b,">",a)