write program for palindrome
Answer Posted / tarun soni
#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==m)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the size of integer variable?
Why do we need runtime polymorphism in c++?
Differentiate between C and C++.
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
Write a program to find the reverse Fibonacci series starting from N.
What is the first name of c++?
Difference between a homogeneous and a heterogeneous container
Is c++ a low level language?
How a macro differs from a template?
Is c the same as c++?
Write about c++ storage classes?
What is a type library?
What is a driver program?
Explain the concept of copy constructor?
What is stream and its types in c++?