Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <conio.h>
#include <graphics.h>
void axes(int xc, int yc)
{
line(xc-100,yc,xc+100,yc);
line(xc+100,yc,xc+95,yc-2);
line(xc+100,yc,xc+95,yc+2);
line(xc,yc-100,xc,yc+100);
line(xc,yc-100,xc-2,yc-95);