Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  aru n
Language: C/C++
Code:
#include<iostream.h>
int main()
{int digit,n,num,rev=0;
cout<<"enter number:";
cin>>num;
num=n;
do
{digit=n%10;
rev=(rev*10)+digit;
n/=10;}while(n!=0);
if(num==rev)
{cout<<"palindrome";}
else
{cout<<"not palindrome";
}
return 0;
}
          
Comments: