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 |
How const functions will be treated by compiler?
What is the use of turbo c++?
How does throwing and catching exceptions differ from using setjmp and longjmp?
Write is a binary search tree? Write an algo and tell complexity?
What are mutator methods in c++?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
How to allocate memory dynamically for a reference?
Write the program form Armstrong no in c++?
How will you call C functions from C ++ and vice-versa?
0 Answers Agilent, Tavant Technologies, Thomson Reuters, Verifone,
What is polymorphism & list its types in c++?
What is general format for a prototype?