The power of a periodic signal $x_{T_0}(t)$ is the long-term average value of its squared waveform. More simply, it can also be obtained as the the average value of the squared waveform over one period $T_0$:
Try it by yourself...