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
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
What is the basic structure of c++ program?
Which c++ compiler is best?
What is the use of c++ programming language in real life?
Difference between overloaded functions and overridden functions
What is the header file for setw?
What is type of 'this' pointer?
When do we run a shell in the unix system? How will you tell which shell you are running?
Which one between if-else and switch is more efficient?
How to declare a pointer to an array of integers?
What are the uses of typedef in a program?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
Is nan a c++?
What is different in C++, compare with unix?