write program for palindrome
Answer Posted / katta shravan kumar
#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;
n=n/10;
s=n*10+r;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What operators can you overload in c++?
Explain Memory Allocation in C/C++ ?
Write about the retrieval of n number of objects during the process of delete[]p?
Can member functions be private?
What is the purpose of template?
What is c strings syntax?
What is ofstream c++?
Write a note about the virtual member function?
What is a singleton c++?
What is the default access level?
What is microsoft c++ redistributable 2013?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What is the extension of c++?
Differences between private, protected and public and give examples.
What is c++ flowchart?