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
What apps are written in c++?
Do class method definitions?
What is pointer to member?
Is c++ an integer?
Define what is constructor?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What information can an exception contain?
What is the difference between the parameter to a template and the parameter to a function?
Define pure virtual function?
State the difference between delete and delete[].
What does flush do?
What is the use of ::(scope resolution operator)?
Who made c++?
Is overriding possible in c++?