SarbenduRay
 | Subject: Bluej program Sat Feb 13, 2010 4:48 pm | |
| | Write a program in bluej to check a number is palindrome or not.?? |
|
priya_lorha
 | Subject: Try yourself a bit here is the main segment Thu Feb 18, 2010 9:37 am | |
| void main(int n) { int k=n; int s=0; while(k!=0) {int r=k%10; s=s*10+r; k=k/10;} if(n==s) s.o.pln("Pallindrome"); } } int n=27 r=7 r=2 s=7 r=72 k=2 k=0 s=72 n=27 not a pallindrome no |
|