Driver Code
var n = 5 ; document . write ( n + " " + " " ) ; document . write ( centereddecagonalnum ( n ) + " " ) ; n = 9 ; document . write ( n + " " + " " ) ; document . write ( centereddecagonalnum ( n ) ) ;