In the previous two posts I have discussed few important functions of graphics.h library in C Programming. As promised here is the sample C language program which will demonstrate the use of graphics functions usign C language and draw some geometrical shapes on the console. If you have followed the previous two posts the you will not find the source code difficult to compile and execute. If you still experience any problems using the source code or compiling the code the please do let me know, and I will try to figure it out.
In the meantime you can browse through more source code for C Programming and C++ Programming and even more source code under Source Code section.

I hope this explanation of commom functions present in graphics.h library and the sample code would help you learn graphics programming in C language.