write program for palindrome
Answer Posted / md.irfan(rourkela)
#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 ? | 1204 Yes | 747 No |
Post New Answer View All Answers
What is endl?
What is operators in c++?
What is the need of a destructor?
Does dev c++ support c++ 11?
What is copy constructor? Can we make copy constructor private in c++?
What is a node class in c++?
Explain the register storage classes in c++.
Can you please explain the difference between overloading and overriding?
What is an iterator?
What is the return value of the insertion operator?
What do you mean by vtable and vptr in c++?
What is an html tag?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What flag means?
What is namespace & why it is used in c++?