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 / felix

#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(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    242 Yes 354 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is split a string in c++?

1150


What is the two main roles of operating system?

996


Explain the properties and principles of oop.

979


What do you mean by public protected and private in c++?

1016


What are the differences between new and malloc?

1073


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

991


Define linked lists with the help of an example.

998


Explain about vectors in c ++?

984


What relational operators if statements in c++?

1138


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

998


What is main function in c++ with example?

1170


Write is a binary search tree? Write an algo and tell complexity?

988


What is the identity function in c++? How is it useful?

1009


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2594


What are member functions used in c++?

1105