Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write program for palindrome

Answer Posted / varun tiwari

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(s == m)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What methods can be overridden in java?

1258


How much do coding jobs pay?

1008


What is the difference between global int and static int declaration?

1059


What is the best way to declare and define global variables?

1316


Is c++ a difficult language?

1118


Are there interfaces in c++?

996


What is #include c++?

1129


Can a program run without main in c++?

1203


Why Pointers are not used in C++?

1074


What is function prototyping? What are its advantages?

1088


How do you save a c++ program?

1034


Differentiate between an external iterator and an internal iterator?

994


Which field is used in c++?

1103


What are the data types in c++?

941


Can we inherit constructor in c++?

1090