write program for palindrome
Answer Posted / md.irfan(rourkela)
#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 ? | 1204 Yes | 747 No |
Post New Answer View All Answers
What is the use of setfill in c++?
What are exceptions c++?
What is c++ best used for?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
Is it possible to get the source code back from binary file?
What is c++ flowchart?
What kind of jobs can I get with c++?
the first character in the variable name must be an a) special symbol b) number c) alphabet
Can we sort map in c++?
Which operator cannot be overloaded c++?
When should we use multiple inheritance?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
What are proxy objects in c++?
What is the latest c++ standard?
What is the this pointer?