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 is #include iomanip?
How would you find out if a linked-list is a cycle or not?
How many keywords are used in c++?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
Explain differences between new() and delete()?
Explain the difference between class and struct in c++?
What is lambda in c++?
Explain about vectors in c ++?
What does std :: flush do?
What are the advantages of using const reference arguments in a function?
What is scope resolution operator in c++ with example?
Explain what data encapsulation is in c++?
Write about c++ storage classes?
Which of the following is evaluated first: a) && b) || c) !
Define whitespace in C++.