How to output the data recived from potentiometer with digital output?

"Digital output" is not well defined... There is serial data, parallel data, etc.

The Analog Read Serial Example reads the pot and sends-out the digital reading to the serial monitor. (This is probably not what he wants.}

Or, you could use an if-statement to turn-on an LED (digital) when the analog input reads greater than 100, etc.