write program for palindrome
Answer Posted / 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 |
Post New Answer View All Answers
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
What is a dynamic binding in c++?
How many standards of c++ are there?
What is searching?
Discussion on error handling of C++ .
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
Can a program run without main?
Are there any special rules about inlining?
What is meant by entry controlled loop?
What methods can be overridden in java?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Differentiate between an inspector and a mutator ?
Define 'std'.
How did c++ get its name?
What is the latest version on c++?