write program for palindrome
Answers were Sorted based on User's Feedback
Answer / felix
#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(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 242 Yes | 354 No |
What happens when the extern "c" char func (char*,waste) executes?
How to detect memory leaks in c++
Why is standard template library used?
What is the purpose of extern storage specifier?
Explain terminate() and unexpected() function?
How many types of classes are there in c++?
What are the important differences between c++ and java?
Under what conditions is multiple inheritance not recommended?
What are the benefits of pointers?
What is data hiding c++?
What are function poinetrs? where are they used?
How do c++ struct differs from the c++ class?