Which solid has a triangle as its side view and a triangle as a cross section perpendicular to its base?
A. cone
B. cylinder
C. triangular prism
D. pentagonal prism