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 do you differentiate between overloading the prefix and postfix increments?
What is a hashmap c++?
What is stl containers in c++?
What are the two types of comments, and how do they differ?
Explain data encapsulation?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
What is c++ course?
What is atoi?
What is data types c++?
How do you establish a has-a relationship?
Difference between delete and free.
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is using namespace std in cpp?
Does c++ support multilevel and multiple inheritances?
What are different types of loops in c++?