How can i draw a star using glut and basic glVertex function?

How can i draw a star using glut and basic glVertex function?
Can anyone post example code for this and the complete command to compile this program?

Nobody is going to do your homework assignment for you.
I suggest you plot the point on graph paper and use glVertex3f to draw the polygon.
It’s very simple and there are plenty of beginner tutorial sites to get you started. Don’t be lazy and do your research!

Yes, draw it on paper first (remember the axis representation). Use triangles and then use glVertex (MAN) to draw the points!