fork download
  1. #include<stdio.h>
  2. #include<graphics.h>
  3. #include<conio.h>
  4.  
  5. int main(){
  6. int gd = DETECT,gm;
  7. int x ,y ,radius=80;
  8. initgraph(&gd, &gm, "C:\\TC\\BGI");
  9. /* Initialize center of circle with center of screen */
  10. x = getmaxx()/2;
  11. y = getmaxy()/2;
  12.  
  13. outtextxy(x-100, 50, "CIRCLE Using Graphics in C");
  14. /* Draw circle on screen */
  15. circle(x, y, radius);
  16.  
  17. getch();
  18. closegraph();
  19. return 0;
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:2:9: fatal error: graphics.h: No such file or directory
 #include<graphics.h>
         ^~~~~~~~~~~~
compilation terminated.
stdout
Standard output is empty