write program for palindrome
Answer Posted / bhavesh vala
#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(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Is python better than c++?
Explain the difference between overloading and overriding?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
Describe new operator and delete operator?
What are the advantages of using friend classes?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Do you know about C++ 11 standard?
How to get the current position of the file pointer?
What is heap sort in c++?
Can a Structure contain a Pointer to itself?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What is the use of dot in c++?
Tell me can a pure virtual function have an implementation?
What are guid? Why does com need guids?
Write a Program to find the largest of 4 no using macros.