write program for palindrome
Answer Posted / jamai partha
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(s==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is c++ a difficult language?
Describe the advantage of an external iterator.
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is ofstream c++?
Write a program to find the reverse Fibonacci series starting from N.
What is the default access level?
How does class accomplish data hiding in c++?
How to allocate memory dynamically for a reference?
What are structures and unions?
What is the type of 'this' pointer?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What are the uses of pointers?
Can you overload the operator+ for short integers?
What is helper in c++?
Is string data type in c++?