write program for palindrome
Answer Posted / badsha
#include<iostream.h>
void main()
{
int m=0,n,s=0,r;
cout<<"Enter any number :"<<endl;
cin>>n;
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==s)
{
cout<<"it is palindrom :"<<endl;
}
else
{
cout<<"No is Not palindrom :"<<endl;
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which is the best c++ compiler?
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?
How can you specify a class in C++?
How can I learn dev c++ programming?
Why is c++ not purely object oriented?
What will the line of code below print out and why?
What is heap sort in c++?
What are c++ templates used for?
Explain the volatile and mutable keywords.
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What are the methods of exporting a function from a dll?
give me an example for testing a program showing the test path .show how the test is important and complex.
What is else if syntax?
Explain bubble sorting.
Can java be faster than c++?