unsigned reverse (unsigned n) {
unsigned r = 0;
while (n) {
r *= 10;
r += (n%10);
n /= 10;
}
return r;
}
bool is_palindrome (unsigned n) {
return n == reverse (n);
}
int main () {
unsigned num;
printf ("Enter a number: ");
scanf ("%d", num);
if (is_palindrome (num))
printf ("%d is a palindrome\n");
else
printf ("%d is not a palindrome\n");
return 0;
}
Palindrome number is a number like 121 which remains the same when its digits are reversed. To find this number in a simple java program, just follow the below way. sum = 0; while(n>0) { r=n % 10; sum=concat(r); n=n / 10; } print r;
It is a simple program. i think u may understand it :#include#include#includevoid main(){char s[10]=answers.com;char x[10];int a;clrscr();strcpy(x,s);strrev(s);a=strcmp(s,x);if(a==0){printf("the entered string is palindrome");}else{printf("the entered string is not palindrome");}output:given string is not palindrome
906609=913*993 I found this using a relatively simple computer program that I wrote.
The palindrome for small child is 'tot'
A simple palindrome for a very young child could be "mom" or "dad". It will be easy for them to grasp and remember.
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
simple program
There is no simple answer because the position of the missing number is not known. Furthermore, it is not clear whether the sequence is an arithmetic, geometric or some other sequence.
Some EAPs are just a hotline. Employees are encouraged to call a particular number and ask for help.
Disconnecting a VCR from a Samsung TV is simple. All you have to do is download the uninstall program.
hey..it s simple..make use of built-in function isdigit(character)..it s in stdlib.h...
There is no simple way since there is no known pattern for the exact distribution of primes. You just have to go and check each number to see whether or not it is a prime.