CIRCULO.C

 /*****************************************/
/*PROGRAM MADE FOR GERARD ORELLANA       */
/*COPYRIGHT 2003 ALL RIGHT FOT THE AUTOR */
/*2003                                   */
/*****************************************/

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

int main(void)
{
  
   char c;
   int x, y;
   int radio = 100;
   int controlador = DETECT, gmode, handler;

   initgraph(&controlador, &gmode, "");

   handler = graphresult();
   if (handler != grOk)
   {
      printf("GRAPH Error: %s\n", grapherrormsg(handler));
      printf("Press ONE KEY TO HALT:");
      getch();
      exit(1);
   }

   x = getmaxx() / 2;
   y = getmaxy() / 2;
   setcolor(3);
    gotoxy(13,5);
    printf("***************WELCOME TO THE CIRCLE *****************");
    gotoxy(13,6);
    printf("******************************************************");
    gotoxy(13,7);
    printf("******************GERARD ORELLANA*********************");

    do {
   
    c=getche();
   
    if(c=='+') radio++;
    if(c=='-') radio--;
    circle(x, y, radio);
   
    } while (c!='q');

    printf("SEE YA SOON");

    /*Sale con q*/

   getch();
   closegraph();
   return 0;
}

Project Homepage: