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 / jamai partha

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
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==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1021


Can the creation of operator** is allowed to perform the to-the-power-of operations?

969


What do you mean by persistent and non persistent objects?

1387


What is the difference between an array and a list?

995


What is #include cstdlib in c++?

1153


What is constructor and destructor in c++?

1075


Define a pdb file.

1039


Where the memory to the static variables is allocated?

1019


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

1045


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

1972


Why do we use templates?

1007


How does the copy constructor differ from the assignment operator (=)?

1110


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1109


Why do we use string in c++?

905


Explain the concept of memory leak?

1066