write program for palindrome
Answer Posted / dude
#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(s == n) // This is important step
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
Is This Answer Correct ? | 199 Yes | 137 No |
Post New Answer View All Answers
What is the two main roles of operating system?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Why is "using namespace std;" considered bad practice?
By using c++ with an example describe linked list?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
Differentiate between realloc() and free().
What is an adjust field format flag?
What is static in c++?
What is oops in c++?
What is atoi in c++?
What is the importance of mutable keyword?
What is a null object in c++?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
What is ostream in c++?
What is the iunknown interface?