write program for palindrome
Answer Posted / m.sathish krishna
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,s=0,m;
clrscr();
printf("enter n");
scanf("%d",n);
m=n;
while(n>0)
(
r=n%10;
s=s*(10+r);
n=n/10;
}
if(m=n)
{
printf("it is palindrom");
}
else
{
printf("not a polindrom");
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is c++ programming language?
Write about the access privileges in c++ and also mention about its default access level?
What is private inheritance?
Define the process of handling in case of destructor failure?
List the issue that the auto_ptr object handles?
What is constructor in C++?
Can a built-in function be recursive?
Which compiler does turbo c++ use?
What are the characteristics of friend functions?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
How many namespaces are there in c++?
Why c++ is better than c language?
Can I run c program in turbo c++?
What is isdigit c++?
When can I use a forward declaration?