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

//RUN THIS PROGRAM IN TURBOC++ ONLY

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main(){
int radius = 0, count=0;
int gdriver = DETECT, gmode;
clrscr();
initgraph(&gdriver, &gmode, "");

while(count < 20) {


setcolor(MAGENTA);
arc(300,300,00,-180,radius++);
count++;
delay(200);
}count=0;

while(count < 20) {


setcolor(LIGHTMAGENTA);
arc(300,300,00,-180,radius++);
delay(200);
count++;
}count=0;

while(count < 20) {


setcolor(BLUE);
arc(300,300,00,-180,radius++);
delay(200);
count++;
}count=0;

while(count < 20) {


setcolor(GREEN);
arc(300,300,00,-180,radius++);
delay(200);
count++;
}count=0;

while(count < 20) {


setcolor(YELLOW);
arc(300,300,00,-180,radius++);
delay(200);
count++;
}count=0;

while(count < 20) {


setcolor(LIGHTRED);
arc(300,300,00,-180,radius++);
delay(200);
count++;
}count=0;

while(count < 20) {


setcolor(RED);
arc(300,300,00,-180,radius++);
delay(200);
count++;
}count=0;
getch();
closegraph();
}

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