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 is null pointer and void pointer and what is their use?
Is c++ double?
Differentiate between an external iterator and an internal iterator?
Why we use #include conio h in c++?
the maximum length of a character constant can be a) 2 b) 1 c) 8
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
What does I ++ mean in c++?
What is c++ and its uses?
How many standards of c++ are there?
Write about the role of c++ in the tradeoff of safety vs. Usability?
What is a literal in c++?
What is virtual function? Explain with an example