Вы находитесь на странице: 1из 1

#include<stdio.

h>
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
void main()
{
int i,j,k,l,p;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\tc\bgi");
setbkcolor(15);
setfillstyle(1,8);
bar(80,50,470,420);
setfillstyle(1,7);
for(i=0;i<=350;i=i+60)
bar(80,70+i,470,80+i);
for(j=0;j<=350;j+=60)
bar(120+j,50,130+j,420);
setcolor(15);
setfillstyle(1,15);
for(k=0;k<=350;k+=60)
{
for(l=0;l<=330;l+=60)
pieslice(125+k,75+l,0,360,6);
}
setcolor(12);
settextstyle(3,0,1);
outtextxy(490,100,"How many ");
outtextxy(490,120,"black circles");
outtextxy(480,140," are there ?" );
getch();
}

//save this file with extention .c

Вам также может понравиться