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
How many standards of c++ are there?
How a macro differs from a template?
What is isdigit c++?
Eplain extern keyword?
Explain the operation of overloading of an assignment operator.
How many characters are recognized by ANSI C++?
Can I learn c++ as my first language?
Do you know what is overriding?
When does a 'this' pointer get created?
What is abstract keyword in c++?
Why do we use vector in c++?
how to connect with oracle 9i with server in socket program in c/c++
What is atoi?
Why is polymorphism useful?
What is the disadvantage of using a macro?