write program for palindrome
Answer Posted / jamai partha
#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)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Are vectors faster than arrays?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
How do you differentiate between overloading the prefix and postfix increments?
What is the full form of india?
What is stoi in c++?
What relational operators if statements in c++?
Explain what are mutator methods in c++?
How many different levels of pointers are there?
Is there finally in c++?
Which bit wise operator is suitable for turning off a particular bit in a number?
Can c++ be faster than c?
What is double in c++?
What new()is different from malloc()?
How do you declare a set in c++?
What is constructor c++?