step 1 : input n
step 2 : s = 0, a=n
step 3 : while(n>0)
begin
rem=n%10
s=s*10+rem
n=n/10
end
step 4 : if(s==a)
print 'it is a palindrome'
else
print 'it is not a palindrome'
step 5 : stop
Check digits are determined (or derived) by a set algorithm using the digits of the account number.
No. To be a palindrome the number must read the same forwards as backwards. "153" is not the same number as "351" so this is not palindromic!
the number of steps of an algorithm will be countable and finite.
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;
/*To check whether a string is palindrome*/includeincludevoid main () { int i,j,f=0; char a[10]; clrscr (); gets(a); for (i=0;a[i]!='\0';i++) { } i--; for (j=0;a[j]!='\0';j++,i--) { if (a[i]!=a[j]) f=1; } if (f==0) printf("string is palindrome"); else printf("string is not palindrome"); getch (); }
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
Any number that is is a palindrome will always be a palindrome.
A palindrome number: If the reverse of the number is equal to the number itself, then it is said to be a palindrome number. For example: 11, 22 ,55, etc...
Check digits are determined (or derived) by a set algorithm using the digits of the account number.
There is no number palindrome for 563. A number palindrome is a number which is the same number when the digits are taken in the reverse order. For example, 2002 is the number palindrome of 2002 as it reads the same no matter which way it is read. Whereas 563 when read in reverse is "365" which is not the same as "563". Therefore ,there is no number palindrome for 563.
Yes, 606 is a palindrome.
Numeric palindrome
606 is a palindrome.
606 is a palindrome.
Type your answer here... i think we should first enter 1 number then check it
Reverse the digits then check of the new number is the same as the original number.
If you mean the number 1,111 or simply 1111, this is a palindrome. A palindrome is a string or number that is spelled or written the same way forward and backward.