C Program to find LCM of two Numbers using Recursion
Program to find Palindrome using Recursion
A Palindrome is a sequence that if reversed looks identical to the original sequence Eg : abba, level, 999 etc.
Below is a simple C program to find whether the user input number is a palindrome or not using recursion:
Source code:
#include
// declaring the recursive function
int isPal(int );
/*
global declaration to use the same value
in both the functions
*/
int n;
int main()
{
int palindrome;
printf("\n\nEnter a number to check for Palindrome: ");
scanf("%d", &n);
palindrome = isPal(n);
if(palindrome == 1)
printf("\n\n\n%d is palindrome\n\n", n);
else
printf("\n\n\n%d is not palindrome\n\n", n);
return 0;
.... Show More
All Chapters — C programming
Similar Questions
From Recursive program in c · C programming
Program to print Fibonacci Series using Recursion
C Program to calculate a Number raised to the Power of N using Recursion
C Program to Find Sum of N Numbers using Recursion
C Program to find whether a Number is Prime Or Composite using Recursion
C Program to find GCD of two Numbers using Recursion
Program to find Factorial of a Number using Recursion
C Program to Print Binary Equivalent of an Integer using Recursion