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
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What are the advantages of c++?
What is setf in c++?
Is nan a c++?
What is class syntax c++?
What is a volatile variable in c++?
How does a copy constructor differs from an overloaded assignment operator?
What is main function in c++ with example?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Difference between delete and free.
What are move semantics?
How const int *ourpointer differs from int const *ourpointer?
Program to check whether a word is a sub-string or not of a string typed
Please explain class & object in c++?
Do inline functions improve performance?