write program for palindrome
Answer Posted / hillol bhattacharya
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m,r;
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Describe exception handling concept with an example?
Explain the purpose of the keyword volatile.
How do you declare a set in c++?
What is the function to call to turn an ascii string into a long?
What is the difference between a template and a macro?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Does c++ have arraylist?
What is const pointer and const reference?
Explain the pure virtual functions?
Is c++ free?
Differentiate between late binding and early binding.
Can create new c++ operators?
What is static in c++?
What is a block in c++?