Saturday, August 20, 2011

Check whether the entered number is Palidrone or not.

//Program to check whether the entered number is Palidrone or not.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
 int num,r,n=0,temp;
 float s;
 char c;
 clrscr();
 printf("\n Enter the number: ");
 scanf("%d",&num);
 temp=num;
 while(temp>0)
 {
  r=temp%10;
  temp=temp/10;
  n=n*10+r;
 }
 if(num==n)
 printf("entered number is palidrone");
 else
 printf("entered number is not palidrone");
 getch();
}

Previous Next Home
0 Comments
Comments

Leave a Comment

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Twitter Delicious Facebook Favorites More