Prove that if f(x) is continuous on [a,b] and f(x)=0 on (a,b), then f(x) is a constant.

Problem: 

Prove that if f(x) is continuous on [a,b] and f(x)=0 on (a,b), then f(x) is a constant.

Answer: 

It is true that if f(x) is continuous on [a,b] and f(x)=0 on (a,b), then f(x) is a constant.