A slender bar of mass and length is released from rest in a horizontal position. The work done by its weight when it has rotated through is
A
.
B
.
C
.
D
.