Find a function f from R to R such that f is continuous at only one point?

1 answer

f is a function from R to R such that f(a) is rational when a is irrational and f(a) is irrational when a is rational . prove that f cannot be continuous