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
What is boyce codd normal form in c++?
What is the size of integer variable?
Explain what are the sizes and ranges of the basic c++ data types?
When does the c++ compiler create temporary variables?
What is the best c++ compiler?
Describe the syntax of single inheritance in C++?
Why c++ is called oop?
What is the cout in c++?
What is c++ good for?
What is the difference between while and do while loop?
What are compilers in c++?
What is string in c++ programming?
What are single and multiple inheritances in c++?
Explain abstraction.
What do you mean by static variables?