Easy learning with example program codes

C program to check for a Palindrome number

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.
Posted in C   

Industrial Training

We offers Placement Oriented Training on Java, Spring, JSF, Hibernate, PHP, AngularJS, Angular 4, PLSQL, Oracle BI Publisher etc. We also provides Online training, please mail us at


We also provides the Development services for Website Development , Java Development, PHP Development, Android App Development etc. You can contact us on

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki