C program to plot random color dots on screen

Source Code-
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT, gm, i;
clrscr();
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
for(i=1;i<=15;i++)
{
putpixel(20+i*15,30,i);
}
getch();
closegraph();
}

output-



Comments

Popular posts from this blog

Java Program to print any matter

Line

putpixel in c