Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

palindrome number


 while(n>0){    
   r=n%10;  //getting remainder  
   sum=(sum*10)+r;    
   n=n/10;    
  }    
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #palindrome #number
ADD COMMENT
Topic
Name
2+6 =