write program for palindrome
Answer Posted / tarun soni
#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==m)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is oops in c++?
Explain the concept of friend function in c++?
What is the difference between function overloading and operator overloading?
What is the difference between the parameter to a template and the parameter to a function?
What are literals in C++?
What is the latest version on c++?
Why main function is special in c++?
What is the header file for setw?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
What is prototype in c++ with example?
Why is standard template library used?
What is low level language in simple words?
What is vector processing?
Explain the uses oof nested class?
What is scope operator in c++?