Bsic Program for LINEs

I want to draw a simple line in wave form but i m not able to draw it

i m using (GL_LINES)

BUT STILL i m confuse

specify each vertex with x,y following this :
x goes from 0 to 10
y = sin (x)