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
Explain the difference between overloading and overriding?
What is a modifier in c++?
Describe the advantages of operator overloading?
What is c++ in english?
What is atoi in c++?
What is the advantage of c++ over c?
What do you mean by public protected and private in c++?
Can a program run without main in c++?
What is c++ manipulator?
What are enumerations?
What is a constant? Explain with an example.
What is ios flag in c++?
Can I learn c++ without learning c?
What is expression parser in c++
What is #include iostream h in c++?