#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>
int main()
{
int x,y,i,k,j;
int gd=DETECT, gm;
int S1[5][5]={
{0,1,1,1,0},
{0,1,0,0,0},
{0,1,1,1,0},
{0,0,0,1,0},
{0,1,1,1,0}};
int A2[5][5]=
{
{0,0,1,0,0},
{0,1,0,1,0},
{0,1,1,1,0},
{0,1,0,1,0},
{0,1,0,1,0}};
int N3[5][5]={
{1,0,0,0,1},
{1,1,0,0,1},
{1,0,1,0,1},
{1,0,0,1,1},
{1,0,0,0,1}};
int D4[5][5]={
{1,1,1,0,0},
{1,0,0,1,0},
{1,0,0,1,0},
{1,0,1,0,0},
{1,1,0,0,0}};
int Y5[5][5]={
{1,0,0,0,1},
{0,1,0,1,0},
{0,0,1,0,0},
{0,0,1,0,0},
{0,1,1,1,0}};
initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
for(k=0;k<7;k++)
{
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
if(k==0)
{
if(S1[i][j]==1)
putpixel(j+300-150,i+230,WHITE);
}
if(k==1)
{
if(A2[i][j]==1)
putpixel(j+350-150,i+230,WHITE);
}
if(k==2)
{
if(N3[i][j]==1)
putpixel(j+400-150,i+230,WHITE);
}
if(k==3)
{
if(D4[i][j]==1)
putpixel(j+450-150,i+230,WHITE);
}
if(k==4)
{
if(Y5[i][j]==1)
putpixel(j+500-150,i+230,WHITE);
}
/*if(k==5)
{
if(L6[i][j]==1)
putpixel(j+550-150,i+230,WHITE);
}*/
}
delay(200);
}
}
closegraph();
getch():
}