The correct option is A ∫π0cos(x)dx
This is only a two step problem if we understand the fact on interchanging the lower and upper limits adds a negative sign to the expression.
i.e., ∫baf(x).dx=−∫abf(x).dxSo here∫0πcos(π−x)dx=∫0π−cos(x)dx=∫π0cos(x)dx