write program for palindrome

Answer Posted / bhavesh vala

#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==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data structure in c++?

650


Write about the various sections of the executable image?

570


Can a class be static in c++?

563


What is the need of a destructor?

635


What does return 0 do in c++?

576






what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1766


Explain the difference between new() and malloc() in c++?

620


What is this weird colon-member (" : ") syntax in the constructor?

539


What is the use of typedef?

631


What are the advantages of early binding?

608


What are enumerations?

651


Explain how an exception handler is defined and invoked in a Program.

580


Explain class invariant.

584


What do you mean by inheritance in c++? Explain its types.

608


What is polymorphism in c++? Explain with an example?

605