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
Hindi,
6 months ago
Math,
6 months ago
Accountancy,
11 months ago
Social Sciences,
11 months ago
Physics,
1 year ago