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
Tell me an example where stacks are useful?
What are special characters c++?
What is meaning of in c++?
What is c++ map?
Explain terminate() function?
What is the full form of ios?
Can malloc be used in c++?
What size is allocated to the union variable?
give me an example for testing a program showing the test path .show how the test is important and complex.
What gives the current position of the put pointer?
What is a class template?
What are move semantics?
Why use of template is better than a base class?
Define Virtual function in C++.
What is #include iostream?