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 are friend functions in C++?
Is c++ a difficult language?
What is data types c++?
What is singleton pattern in c++?
Incase of a function declaration, what is extern means?
Why use of template is better than a base class?
What is capacity in vector in c++?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Why is c++ a mid-level programming language?
Is c++ a software?
Explain the isa and hasa class relationships.
What is a breakpoint?
what is a reference variable in C++?
What is the best book for c++ beginners?
Differentiate between late binding and early binding. What are the advantages of early binding?