write program for palindrome
Answer Posted / krishna reddy
#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,s,reverse=0;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n!=0)
{
s=n%10;
reverse=reverse*10+s;
n=n/10;
}
if(m==reverse)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain "const" reference arguments in function?
Explain overriding.
Explain the different access specifiers for the class member in c++.
What are friend classes?
What is difference between malloc()/free() and new/delete?
By using c++ with an example describe linked list?
Explain the difference between using macro and inline functions?
What is the two main roles of operating system?
What is double in c++?
Specify different types of decision control statements?
Is std :: string immutable?
How do you find out if a linked-list has an end?
What is an arraylist c++?
What problems might the following macro bring to the application?
Differentiate between late binding and early binding.