write program for palindrome
Answer Posted / bhavesh vala
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Is dev c++ free?
What are abstract data types in c++?
Which sort does c++ use?
What are proxy objects in c++?
Explain class invariant.
Write syntax to define friend functions in C++.
What are move semantics?
Is c++ a dying language?
Can I run c program in turbo c++?
Can notepad ++ run c++?
Where do I find the current c or c++ standard documents?
Define basic type of variable used for a different condition in C++?
How many static variables are created if you put one static member into a template class definition?
What is conditions when using boolean operators?
Are strings mutable in c++?