suppose our interval is [0,1]. define f:[0,1]→R by:
f(x) = -1, for 0 ≤ x < 1/2
f(x) = 1, for 1/2 ≤ x ≤ 1.
clearly, f is discontinuous (at 1/2).
now define g:[0,1]→R by:
g(x) = 1 for 0 ≤ x < 1/2
gx) = -1, for 1/2 ≤ x ≤ 1.
again, g(x) is discontinuous (at 1/2).
but (f+g)(x) = 0, for all x in [0,1], and constant functions are continuous.