FREE : [ Study Material ] NDA/SSB Preparation : Check Now!!! | Latest: HR Interview Questions:CHECK | Like Us :

Friday, 21 December 2012

Program to check Palindrome of a Number | C Program


Input


#include<stdio.h>
#include<conio.h>
void main()
{
int num,rev=0,temp;
clrscr();
printf("Enter the number of want to check for palindrome\n");
scanf("%d",&num);
temp=num;
while(temp>0)
{
rev=(10*rev) + (temp%10);
temp=temp/10;
}
if(num==rev)
printf("\nNumber is Palindrome");
else
printf("\n Number is not Palindrome");
getch();
}


Turbo C





Please Submit your Responses
 

Results

get our extension

Like Us on FB

    Freshers Jobs

    Donate

    DMCA Protected

    You are Visitor Number

    Interview Questions

    SSB Questions

      Authors
    Tinku Singh
    Hitesh Dhanda

    MrNaukri.com - Get Sarkari Jobs, Results, Off Campus Placement Updates © 2012. All Rights Reserved | Back To Top |

    © 2013 A Product of IBC Network