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
Write about c++ storage classes?
Is c++ primer good for beginners?
What is switch case in c++ syntax?
Difference between strdup and strcpy?
Is python better than c++?
How to demonstrate the use of a variable?
What does it mean to declare a member function as virtual?
Which ide is best for c++?
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
What is the use of endl?
Do you know the problem with overriding functions?
Which is the best c++ software?
What is the use of vtable?
What is a Default constructor?
Explain the uses of static class data?