Check if a number is magic ( Recursive sum of digits is 1 ) | Accepting sample input ; Condition to check Magic number
var x = 1234 ; if ( x % 9 == 1 ) document . write ( " " ) ; else document . write ( " " ) ;