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
What is the difference between the parameter to a template and the parameter to a function?
Why is c++ still best?
Can recursive program be written in C++?
What is the role of static keyword for a class member variable?
What is a driver program?
Explain terminate() function?
Why main function is special in c++?
what is Loop function? What are different types of Loops?
What information can an exception contain?
What is a manipulator in c++?
Write a program to find the Factorial of a number
What is array give example?
Why c++ does not have finally?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
Is c++ the hardest programming language?