C/C++ Programs
Home
C programs
C++ Programs
Home
About
Contact
Home
C programs
Write a C program to find whether a number is pallindrome or not
Write a C program to find whether a number is pallindrome or not
Bibek Adhikari
April 04, 2013
#include<stdio.h>
main()
{
int m, n, f;
n = 0;
printf("enter any number",m);
scanf("%d", &m);
f = m;
while (m != 0){
n =n*10+ m % 10;
m = m / 10;
}
if (n==f){
printf("palindrome\n");
}else{
printf("not palindrome\n");
}
}
Post a Comment
0 Comments
Most Popular
C++ Program to find Area and Perimeter of Rectangle Using Class
May 24, 2013
Write a C++ Program to find the distance between two points
May 24, 2013
Write a C program that defines a structure called student , store the student's name,roll no,address,date of birth and print it
April 04, 2013
Write a C program to find the sum of first 10 even numbers
April 03, 2013
Write a C program to find the largest number among 10 given numbers
April 04, 2013
C program to implement Top down parser with backtracking.
February 18, 2016
Write a C++ program to find largest number among 10 numbers
May 24, 2013
Write a C program to find whether the number is prime or composite
April 03, 2013
C++ Program Using Switch Statement
May 24, 2013
Write a C program to find LCM of Given Number using function
April 04, 2013
More programs
Loading...
Python Codes
Loading...
Contact form
0 Comments