Answer Posted / a.prathyusha
#include<stdio.h>
void main()
{
int n,s=0,r,n1;
printf("enter any number:");
scanf("%d",&n);
n1=n;
while(n>0)
{
r=n%10;
s=(s*10)+r;
n=n/10;
}
if(s==n1)
printf("palindrom");
else
printf("not palindrom");
}
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of sprintf?
what is the function of pragma directive in c?
What is the difference between the expression “++a” and “a++”?
Tell me what is the purpose of 'register' keyword in c language?
What are types of functions?
Is javascript written in c?
about c language
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What are header files? What are their uses?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Write a function that will take in a phone number and output all possible alphabetical combinations
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
Which header file is used for clrscr?
given post order,in order construct the corresponding binary tree
How can I handle floating-point exceptions gracefully?