write program for palindrome
Answer Posted / jamai partha
#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(s==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why do we use the using declaration?
What are the basics of local (auto) objects?
What is the difference between new() and malloc()?
Is c or c++ more useful?
How a new operator differs from the operator new?
What is null and void pointer?
Why c++ is so important?
What is abstraction with real time example?
Program to check whether a word is a sub-string or not of a string typed
What is a block in c++?
What are the methods of exporting a function from a dll?
Does dev c++ support c++ 11?
Differentiate between a constructor and a method in C++.
How a modifier is similar to mutator?
What is the size of a vector?