Program to fill screen with printed pixels

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>


void main()
{
  clrscr();
  int gm=DETECT,gd,i;


   initgraph(&gm,&gd,"");

  for(i=0;i<=500;i=i+10)
  {
  for(int j=0;j<=500;j=j+10)
  {


       putpixel(50+i,100+j,7);
       }
       }
  getch();
}

Leave a Reply