write program for palindrome
Answer Posted / bhavesh vala
#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 ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the differences between java and c++?
How is c++ used in the real world?
What is guard code in c++?
What is a dynamic binding in c++?
What is class and structure in c++?
What is a breakpoint?
Write a note about the virtual member function?
What is an object in c++?
When should we use multiple inheritance?
How can you tell what shell you are running on unix system?
Explain stack unwinding.
What is the role of copy constructor in copying of thrown objects?
describe private access specifiers?
which operator is used for performing an exponential operation a) > b) ^ c) none
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)