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 / deepa garia

#include<stdio.h>
#include<conio.h>
int main()
{
int r,n,k=0,l;
printf("\nENTER THE NUMBER ");
scanf("%d",&n);
l=n;
while(n>0)
{
r=n%10;
n=n/10;
k=k*10+r;
printf("%d",r);
}
if(k==l)
printf("\npalindrome");
else
printf("\n not palindrome");
getch();
return 0;
}

Is This Answer Correct ?    16 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the type of this pointer in c++?

1076


What are advantages of using friend classes?

1085


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1157


Write a program to add three numbers in C++ utilizing classes.

1132


How can a struct in c++ differs from a struct in c?

1057


What problems might the following macro bring to the application?

1064


Why do we need constructors in c++?

1125


Write a program which uses Command Line Arguments

1195


What is the operator in c++?

1143


What is a wchar_t in c++?

1158


How can you specify a class in C++?

1303


What is the use of bit fields in structure declaration?

997


State the difference between pre and post increment/decrement operations.

1104


What is stoi in c++?

1194


What are different types of loops in c++?

1139