write program for palindrome
Answer Posted / akash
#include<stdio.h>
#include<conio.h>
void main()
{
int n,rev=0,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
}
printf("reverse of the number is %d",rev);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which bit wise operator is suitable for checking whether a particular bit is on or off?
Which should be more useful: the protected and public virtuals?
What is abstraction c++?
Can you use the function fprintf() to display the output on the screen?
write a programme to get a character and thier ASCII value
Difference between inline functions and macros?
When should we use multiple inheritance?
When do we run a shell in the unix system?
What is private inheritance?
What are the general quetions are in DEna bank manager IT/System interviews?
What is meant by const_cast?
Are iterators pointers?
What is a multimap c++?
Define virtual constructor.
What is c++ good for?