Let $T:C[0,1] \to C[0,1]:Tx(t) = \int_0^t x(s)ds$. Is it a contraction? Is any power of T a contraction?
$T: X \to X$ is a contraction if $\exists \alpha < 1: d(T_x,T_y) \leq \alpha d(x,y),\ \forall x,y \in X$
I couldn't figure out how to take integral so that I can compare it with d(x,y).
No, $T$ is not a contraction; an example has already been given. But it is a "weak contraction", in that $d(Tx,Ty)\le d(x,y)$.
And $T^2$ is a contraction; hence so is $T^k$ for any $k\ge2$, by induction.
Define $||x||=\sup_{t\in[0,1]}|x(t)|$ as usual. Then $$|Tx(t)|\le\int_0^t||x||=t||x||,$$so $$||Tx||\le||x||\sup_{t\in[0,1]}=||x||.$$ And$$|T^2x(t)|\le||x||\int_0^ts\,ds\le||x||/2.$$Since $d(x,y)=||x-y||$ and $T$ is linear this shows that $d(T^2x,T^2y)\le d(x,y)/2$.