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
Is facebook written in c++?
What is heap sort in c++?
Is c++ vector dynamic?
What is an inclusion guard?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
Should I learn c++ c?
What are the main features of c++?
What is stream and its types in c++?
What is boyce codd normal form in c++?
Is overriding possible in c++?
Explain stack unwinding.
Difference between class and structure.
Why the usage of pointers in C++ is not recommended ?
what are the iterator and generic algorithms.
Why c++ is so important?