answersLogoWhite

0

#include <stdio.h>

#include<conio.h>

void main ()

{

int a,r,n,sum=0;

clrscr();

printf("enter the number");

scanf("%d",& n);

c=n

while (n!=0)

{

a=n%10;

n=n/10;

sum=sum*a+a

}

printf("the reverse is %d \n",sum);

if(c==sum)

printf("\n the given number is palindrome");

else

printf("\n the given number is not a palindrome");

getch();

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


How you write a program in c plus plus to print plaindromic numbers from 1 to n?

To check if a number is a palindrome, reverse the number and see if it is equal to the original number. If so, the number is a palindrome, otherwise it is not. To reverse a number, use the following function: int reverse(int num, int base=10) { int reverse=0; while( num ) { reverse*=base; reverse+=num%base; num/=base; } return(reverse); }


Lab manual in mca 1st sem from ignou?

write a program in C to check whether a given number is apalindrome or not


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


What is a Desk check trace table?

Going through a program on paper to check whether it has errors.


To check whether the given number is an Avogadro number or not?

45


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


Write a c program using while loop to accept a number check and display message whether number is perfect or not?

The program is here guys.......... //Finding whether the given number is perfect or not //Starts here #include&lt;stdio.h&gt; void main() { int i=1,temp=0,number; scanf("%d",&amp;number); while(i&lt;=number/2){ if(number%i==0) temp+=i; i++; } if(temp==number) printf("Its a perfect number"); else printf("Its not a perfect number"); } //ends here


What are the phone reverse look up websites.?

virtual chase website offers a reverse number check, There price is the first 10 free and then 5.00 for 25 numbers. I have it here once and to be honest i did find out who called with just the easy method of putting there phone number in and found them with in 5 seconds.Great idea this reverse phone number check.


How do you check whether a number is a square number?

if it's square root is an integer, it is a square number.


To write shell program to check the given number and its reverse are same?

echo "enter the number" if [ $# -ne 1 ] then echo "Usage: $0 number" echo " I will find reverse of given number" echo " For eg. $0 12321, I will print 12321" exit 1 fi n=$1 rev=0 sd=0 while [ $n -gt 0 ] do sd=`expr $n % 10` rev=`expr $rev \* 10 + $sd` n=`expr $n / 10` done echo "Reverse number is $rev"


How do you get a phone number for an address?

It's called "reverse lookup" ... check out the many online resources for this.