write program for palindrome
Answer Posted / surya
#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 ? | 14 Yes | 19 No |
Post New Answer View All Answers
What is class invariant in c++?
Write a Program for find and replace a character in a string.
What do you mean by inheritance in c++? Explain its types.
Are there interfaces in c++?
What is null pointer and void pointer?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
How is c++ used in the real world?
What is srand c++?
How do you generate a random number in c++?
What is difference between class and structure in c++?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
What is null c++?
Is eclipse good for c++?
Tell me can a pure virtual function have an implementation?
Explain the difference between class and struct in c++?