write program for palindrome
Answer Posted / kumaran
int a,n,s,x=0;
a=n;
while(n>0)
{
s=n%10;
x=x*10+s;
n=n/10;
}
if(a=n)
printf("palindrome");
else
printf("not palindrome");
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what is data abstraction in C++?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is name hiding in c++?
What is a down cast?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What is meaning of in c++?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
Define upcasting.
What is a class template in c++?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What is polymorphism and its type in c++?
Describe the advantage of an external iterator.
What are the advantages of c++? Explain
What is a namespace in c++?