write program for palindrome
Answer Posted / madhupriya
#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 | 1 No |
Post New Answer View All Answers
How much do coding jobs pay?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
When we use Abstract Class and when we use Interface?where we will implement in real time?
How do you declare A pointer to a function which receives nothing and returns nothing
Why namespace is used in c++?
What is c++ map?
What is using namespace std in c++?
What are the implicit member functions of class?
What is struct c++?
Why the usage of pointers in C++ is not recommended ?
What is c++ code?
What does flush do?
What is bubble sort c++?
How do c++ struct differs from the c++ class?
Write about the scope resolution operator?