can someone explain the program and help me to find out a sementic error.
nu=int(input("enter nu"))
def rever(nu):
rev=0
while (nu>0):
rem=nu%10
rev=(rev*10)+rem
nu//=10
print("\nrev is",rev)
if nu==rev:
print(nu,"is palindrome")
else:
print(nu,"is not a palindrome")
rever(nu)
Answers
Answered by
0
Explanation:
can someone explain the program and help me to find out a sementic error.
nu=int(input("enter nu"))
def rever(nu):
rev=0
while (nu>0):
rem=nu%10
rev=(rev*10)+rem
nu//=10
print("\nrev is",rev)
if nu==rev:
print(nu,"is palindrome")
else:
print(nu,"is not a palindrome")
rever(nu)
Answered by
0
Answer:
symentic errors are those which result from expression involving operators with incorrect no.
for example
n3=n1*n2
MARK IT AS BRAINLIEST HOPE IT HELPS
Similar questions
Math,
5 months ago
Math,
5 months ago
Physics,
5 months ago
Accountancy,
10 months ago
Social Sciences,
10 months ago
Physics,
1 year ago