Let $f:\mathbb R \rightarrow \mathbb R$ continuous function such that $f(x+y)=f(x)+f(y)$. Then there exist a real $r$ such that $f(x) = r x$.
My try:
with $f(\frac1q x)$:
$$f(x) = f(q\cdot\frac1q x) = f(\frac1q x+...+\frac1q x) = f(\frac1q x)+...+f(\frac1q x) = qf(\frac1q x)$$ Now $f(\frac pqx)$: Fix $y=\frac xq$ to get $$f(\frac pqx) = f(p\frac xq) = f(py) = p\,f(y) = p\,f(\frac1q x) = p\cdot\frac1qf(x)$$
and i know too that $\lim_{h \rightarrow 0} \frac{f(x + h) - f(x)}{h} = \lim_{h \rightarrow 0} \frac{f(x) + f(h) - f(x)}{h} = \lim_{h \rightarrow 0} \frac{f(h)}{h}$
here i stuck how can i conclude and find this $r$, some help please.