All Data For Free
Pages
Home
Watch Full WWE Episodes of Raw and Smackdown
Contact Us
Copyright Policy
Sunday, 27 November 2011
C++ Program For Find Center Number Is Palindrome Or Not
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,rem,rev=0,total;
cin>>n;
total=n;
while(n>0)
{
ren=n%10;
rev=rev*10+rem;
n=n/10;
}
if(total==rev)
cout<<"Given number is palindrome";
else
cout<<"Not palindrome";
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment