- Enter a number to assign to the n variable:
printf("Enter a number ");scanf("%d",&n);
- Invoke the findpalindrome function and pass the number in the n variable to it as an argument:
findpalindrome(n)
- The n argument is assigned to the numb parameter in the findpalindrome function. We need to separate each digit of the number; to do so, we will execute a while loop for the time the value in the numb variable is greater than 0:
while(numb >0)
- Within the while loop, we will apply mod 10 on the number. On application of the mod 10 operator, we will get the remainder, which is basically the last digit of the number:
remainder=numb%10;
- Push that remainder to the stack:
push(remainder);
- Because the last digit of the number ...