Advertisement
zoro-10

1B. Draw a co-ordinate axis at the center of the screen

Apr 1st, 2024 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. //(b)Draw a co-ordinate axis at the center of the screen.
  2. //Input:
  3.  
  4. #include<graphics.h>
  5. #include<stdio.h>
  6. #include<conio.h>
  7. void main()
  8. {
  9. int gd=DETECT,gm;
  10. initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
  11. line(319,0,319,479);
  12. line(0,239,639,239);
  13. getch();
  14. closegraph();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement