Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  kushall first c program
Language: C/C++
Code:
#include <stdio.h>
int main()
{
     int n,r=0,t;
printf("please enter a number:");
scanf("%d",&n);
t=n;
while(n>0)
{
r=r*10;
r=r+n%10;
n=n/10;
}
if(t==r)
printf("number is palindrome");
else
printf("number is not palidrome");
return 0;
}          
Comments: