#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,x,y,i,j;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
x=getmaxx()/2;y=getmaxy()/2;
settextstyle(3,0,2);
for(i=0;i<=625;i=i+10)
{
outtextxy(x,10+i,"|");
outtextxy(10+i,y,"-");
}
setcolor(YELLOW);
for(i=0;i<=(x-20);i=i+20)
{
for(j=0;j<=(y-20);j=j+20)
{
outtextxy(20+i,20+j,"*");
outtextxy(x+20+i,20+j,"@");
outtextxy(20+i,y+20+j,"&");
outtextxy(x+20+i,y+20+j,"#");
}
}
getch();
closegraph();
}
Nice one
ReplyDeletehelpful for programmers