write program for palindrome
Answer Posted / chander singh
#include<stdio.h>
#include<conio.h>
void main()
{
int r,n,k=0,l;
printf("\n\t\tENTER THE NUMBER \t");
scanf("%d",&n);
l==n;
while(n>0)
{
r=n%10;
n=n/10;
k=k*10+r;
printf("%d",r); //
}
if(r==m)
printf("\n\t\tpalindrome");
else
printf("\n\t\t not palindrome");
getch();
}
| Is This Answer Correct ? | 16 Yes | 25 No |
Post New Answer View All Answers
In a function declaration what does extern means?
What is #include iostream in c++?
Explain what are the sizes and ranges of the basic c++ data types?
What is the purpose of the "delete" operator?
Which software is best for coding?
Do inline functions improve performance?
Write about the use of the virtual destructor?
an integer constant must have atleast one a) character b) digit c) decimal point
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
Is c++ built on c?
What is endl c++?
What is prototype for that c string function?
Explain some examples of operator overloading?
What does new in c++ do?
What is microsoft c++ redistributable?