if you haven’t done anything to move the projection or view setting (e.g. gluPerspective/glTranslate etc), then by default your viewport will span from x (-1, + 1) to y (-1, + 1), which means your screen as follows:
y (+1)
+------------------------+
| |
| |
x(-1) | | x(+1)
| |
| |
| |
+------------------------+
y (-1)
And the center of the screen is (0,0).
If your model has coordinates outside the range (-1, + 1), you need to scale it to this range. Therefore, your triangle should appear if you call it earlier glBegin:
glScalef(0.01, 0.01, 0.01);
This means that "make everything 1/100smaller once, so your triangle will be placed in the viewport (-1.1)."
You should read information about transformations / projections, etc. You can search on Google or use one of the following links: