Let $f(x)=x-[x]$ and $g(x)=\tan x$.
How could we see that $f(x)-g(x)$ is not a periodic function?
This will show that the sum of two periodic functions need not be a periodic function.
I hope the answer has enough details so that I could catch you.