write program for palindrome
Answer Posted / m.sathish krishna
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,s=0,m;
clrscr();
printf("enter n");
scanf("%d",n);
m=n;
while(n>0)
(
r=n%10;
s=s*(10+r);
n=n/10;
}
if(m=n)
{
printf("it is palindrom");
}
else
{
printf("not a polindrom");
}
getch();
}
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Difference between delete and free.
We use library functions in the program, in what form they are provided to the program?
How do you sort a sort function in c++ to sort in descending order?
What is buffer and example?
Should a constructor be public or private?
Is c++ low level?
What are the 2 main types of data structures?
Const char *p , char const *p What is the difference between the above two?
What is difference between n and endl in c++?
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
When should we use multiple inheritance?
Is c++ pass by reference or value?
What are member functions used in c++?
Which of the following is evaluated first: a) && b) || c) !
Write a program in C++ for Fibonacci series