palindrome for strings and numbers----Can anybody do the
prog?
Answer Posted / arup bhattacharya
#include<stdio.h>
#include<conio.h>
void main()
{
int n,r,temp;
int s=0;
clrscr();
printf("enter the number");
scanf("%d",&n);
temp=n;
while(temp>0)
{
r=temp%10;
s=s*10+r;
temp=temp/10;
}
if(n==temp)
printf(number is pallindrome");
else
printf("not pallindrome");
getch();
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
Difference between Shallow copy and Deep copy?
what is the height of tree if leaf node is at level 3. please explain
What is the difference between struct and typedef struct in c?
What are the advantages of union?
What is 2 d array in c?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
i want to know the procedure of qualcomm for getting a job through offcampus
What does stand for?
what does static variable mean?
What are valid operations on pointers?
Why is struct padding needed?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
#include
How many types of operators are there in c?