As the wire is uniform, the mass per unit length of the wire is MπR. The mass of the element is, therefore,
dm=(MπR)(Rdθ)=Mπdθ
The coordinates of the center of mass are
X=1M∫xdm=1M∫π0(Rcosθ)(Mπ)dθ=0
Y=1M∫ydm=1M∫π0(Rsinθ)(Mπ)dθ=2Rπ
Hence, position of center of mass, (0,2Rπ)