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
an integer constant must have atleast one a) character b) digit c) decimal point
What do you mean by delegate? Can a user retain delegates?
What is else if syntax?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What is the return value of the insertion operator?
Write about the various sections of the executable image?
Carry out conversion of one object of user-defined type to another?
What are manipulators used for?
What is function declaration in c++ with example?
What is a class template?
What are manipulators in c++ with example?
Differentiate between late binding and early binding.
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What is scope operator in c++?
List the merits and demerits of declaring a nested class in C++?