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 do you define a class in c++?
Comment on assignment operator in c++.
What are the three forms of cin.get() and what are their differences?
Does c++ support multilevel and multiple inheritances?
When to use “const” reference arguments in a function?
How many different levels of pointers are there?
Do you need a main function in c++?
What is a stack? How it can be implemented?
Disadvantages of c++
WHAT IS THE ABREVATION OF FORTRAN?
how to swap two strings without using any third variable ?
What are libraries in c++?