write program for palindrome
Answer Posted / uday
#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) // This is important step
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
Can member data be public?
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
What do you mean by delegate? Can a user retain delegates?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
What is constructor and destructor in c++?
How can I learn c++ easily?
Is c++ double?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
What is the main use of c++?
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++ best used for?
What programming language should I learn first?
What is polymorphism and its type in c++?
Explain terminate() and unexpected() function?
How will you call C functions from C ++ and vice-versa?