This question already has an answer here:

How can I prove that exists a monotonic non-decreasing function $f: [0,1] \rightarrow \mathbb R$ that isn't continuous in every rational of its domain?


marked as duplicate by Gerry Myerson, Hagen von Eitzen, Davide Giraudo, Alex Becker, Namaste Feb 24 '13 at 22:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.