write program for palindrome
Answers were Sorted based on User's Feedback
Answer / felix
#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 ? | 242 Yes | 354 No |
How much do coding jobs pay?
What is a catch statement?
Why is c++ still used?
What is function overriding?
What are different types of loops in c++?
What is the use of volatile variable?
a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?
What is slicing?
In c++, what is the difference between method overloading and method overriding?
Why was c++ made?
What is a tree in c++?
Differentiate between a pointer and a reference with respect to c++.