Computer Science, asked by amanrcky2039, 1 year ago

write a program in single dimensional array to store 10 numbers in a single dimensional array .Display only those which are palindrome

Answers

Answered by LuckyYadav2578
0
a=[0,0,0,0,0,0,0,0,0,0]
s=0
for i in range (10):
...........a [i ]=int (input ("enter no."))
c[ ]=a[i]
for j in range a[ i ]:
..........d=a [ j ]%10
..........a [j]=a [j]//10
..........s=s*10+d
...........while s>0
.....................if s==c [ ]:
.............................print ("s")


i hope its help and i think it is correct ☆☆ :)
in place of dot there should be space :)
Similar questions