if current through resistor and voltage is given then we can calculate power by P=VI
but if current is not given then P=V^2/R
and if voltage is unknown then P=I^2*R
but if current is not given then P=V^2/R
and if voltage is unknown then P=I^2*R
-
Power = I * V = I^2 * R = V^2 / R