Notice: Constant WP_MEMORY_LIMIT already defined in /home/javawith/public_html/ on line 107

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/javawith/public_html/ on line 108
C program to check for a Palindrome number - CodesJava


Easy learning with example program codes

C program to check for a Palindrome number

Notice: Undefined variable: footnotelist in /home/javawith/public_html/ on line 475

The below program checks for a Palindrome number using a loop. The C printf statement is used to output the result on the screen. A number is called as a Palindrome number if the number remains same even when its digits are reversed.

Palindrome Number:
abcde = edcba

Example: 24142, 1234321, etc.

C program to check prime number

#include <stdio.h>
void main()
int num, x = 0;
int sum = 0;
int mod;
printf("Enter a number:");    
int n = num;
mod = num%10;
x = x * 10 + mod;  
num = num/10;
printf ("%d is a Palindrome number.", n);  
printf ("%d is not a Palindrome number.", n);  


Enter a number:456787654
456787654 is a Palindrome number.
Please follow and like us:
Posted in C   

Copyright © 2019 CodesJava Protection Status