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
How do you clear a buffer in c++?
What it is and how it might be called (2 methods).
What is the difference between *p++ and (*p)++ ?
What is the difference between structures and unions?
Why pointer is used in c++?
What methods can be overridden in java?
Why is null pointer used?
Describe linked list using C++ with an example.
What is this weird colon-member (" : ") syntax in the constructor?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
How much is c++ certification?
Difference between struct and class in terms of access modifier.
Write about the various sections of the executable image?
What are function prototypes?