write program for palindrome
Answer Posted / dharm
#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==s)
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 do you mean by friend class & friend function in c++?
What is enum class in c++?
What is the importance of mutable keyword?
When we use Abstract Class and when we use Interface?where we will implement in real time?
Why #include is used?
What is ifstream c++?
Explain the register storage classes in c++.
Why is polymorphism useful?
What is c++ library?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Differentiate between late binding and early binding. What are the advantages of early binding?
What is a linked list in c++?
How can I disable the "echo" feature?
How do I use turbo c++?
Explain the difference between c++ and java.