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
What is meant by iomanip in c++?
Who invented turbo c++?
What is abstraction in c++ with example?
Can we run c program in turbo c++?
What are single and multiple inheritances in c++?
What is helper 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
What is lazy initialization in c++?
Where and why do I have to put the "template" and "typename" keywords?
What is data types c++?
What are the uses of static class data?
What is a c++ object?
What do you understand by pure virtual function? Write about its use?
Which of the following is evaluated first: a) && b) || c) !
What should main() return in c and c++?