What solid is formed when a right triangle is rotated around a line containing one of its legs?

A) cone
B) cube
C) cylinder
D) sphere

C) cylinder