New Member FAQ
|
Forums
|
Earn Revenue
|
Distance Education
|
Help Topics
|
Admissions 2013
Login
Register
Articles
Practice Tests
Ask Experts
Question Papers
Jobs
Universities
Colleges
Courses
Schools
Gift Shop
|
Bookmarks
|
Reviews
|
Learn English
|
Social Hub
|
Training
|
New Posts
|
My India
|
Members
|
Polls
|
Active Members
Today
mahi patel
(20)
Pritan Tiwari
(10)
jyothirmayi
(6)
Last 7 Days
R Pramod
(906)
K Mohan
(641)
pravin a marka...
(500)
more...
Resources
»
Articles/Knowledge Sharing
»
Computer & Technology
C program to check the given number is palindrome or not
Posted Date:
22-Feb-2009
Category:
Computer & Technology
Author:
K Srinivasa Rao
Member Level:
Gold
Points
: 3
#include< stdio.h >
#include< conio.h >
main()
{
long int num,rev,temp,rem;
clrscr();
printf("Enter a number ");
scanf("%ld",&num);
temp = num;
rev = 0
while (num != 0)
{
rem = num % 10;
rev = rev * 10 + rem;
num = num / 10;
}
if ( temp == rev)
printf("%ld is a palindrome number ", temp);
else
printf("%ld is not a palindrome number ", temp);
}
K. Srinivasa Rao
Community Owner -
C Language Learners
Reference
http://www.indiastudychannel.com/sites/148114/-C-Language-Learners.aspx
Did you like this resource? Share it with your friends and show your love!
Tweet
Responses to "C program to check the given number is palindrome or not"
No responses found. Be the first to respond...
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Basic about CDONTS
Previous Resource:
core java
Return to Resources
Post New Resource
Category:
Computer & Technology
Post resources and
earn money
!
More Resources
Basic about CDONTS
Smartftp - file transfer protocal
C Bit
Connect java method From Flex Client
Flex 3 components
Green IT - Energy-efficient IT for efficient operations
Popular Tags
Tag posting guidelines
Search Tags
C Program
.
Using while loop
.
Palindrome
.
Subscribe to Email
Get Jobs by Email
Forum posts by Email
Articles by Email
Awards & Gifts
Online Members
Naresh Kumar Behera
OSheen JAin
vamshi
Sivasankar V
Jebaprincy
R Pramod
JhonAbner
preet
Madhu sudhan B
MOOSA.T.A
shubham agarwal
More...