write program for palindrome
Answer Posted / amol
#include<stdio.h>
void main()
{
int p,q,r,s=0;
printf("\n Enter the number ::");
scanf("%d",&p);
q=p;
while(p>0)
{
r=p%10;
s=s*10+r;
p=p/10;
}
if(s==q)
{
printf("\n Entered number is palindrome...!!!");
}
else
{
printf("\n Enterde number is NOT a palindrome...!!!");
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
What is c++ hiding?
what are the characteristics of Class Members in C++?
Can you write a function similar to printf()?
What is an inline function in c++?
Explain the problem with overriding functions
What is cout flush?
Explain the uses oof nested class?
How would you differentiate between a pre and post increment operators while overloading?
Why pointer is used in c++?
Who discovered c++?
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
Explain rtti.
Why is it called c++?
State two differences between C and C++.