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
Is python better than c++?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
How does c++ structure differ from c++ class?
what is the difference between overloading & overriding? give example.
Can c++ do everything c can?
When we use Abstract Class and when we use Interface?where we will implement in real time?
Can I make ios apps with c++?
What is the full form nasa?
What are c++ templates used for?
What is lambda expression c++?
What is stoi in c++?
What is vectorial capacity?
Does c++ vector allocate memory?
What is the difference between the functions memmove() and memcpy()?
What are disadvantages of pointers?