[removed] How to reverse a number?

前端 未结 10 920
余生分开走
余生分开走 2020-11-29 11:54

Below is my source code to reverse (as in mirror) the given number. I need to reverse the number using reverse method of arrays.

var a = prompt(\"Enter a va         


        
10条回答
  •  一整个雨季
    2020-11-29 12:20

    Apply Logic of reversing number in paper and try,and you have to care about dividing because it gives float values thats why we have to use parseInt().

    
    
    
    
    
    
    

提交回复
热议问题