CG And OOPs Practicals for 2023-24 For Computer Science Student By Karan Rathod
JIT COLLEGE CG AND OOP PRACTICAL BY KARAN RATHOD 💛 (Aram Se copy kar bhai) CG Practicals 1 #include <iostream.h> #include <conio.h> #include <graphics.h> #include <dos.h> #include <math.h> void drawcircle(int xc, int yc, int r) { int d = 3 - 2 * r; int x = 0; int y = r; while (y >= x) { putpixel(xc + x, yc + y, WHITE); putpixel(xc + y, yc + x, WHITE); putpixel(xc + y, yc - x, WHITE); putpixel(xc + x, yc - y, WHITE); putpixel(xc - x, yc - y, WHITE); putpixel(xc - y, yc - x, WHITE); putpixel(xc - y, yc + x, WHITE); putpixel(xc - x, yc + y, WHITE); x++; if (d > 0) { y--; d = d + 4 * (x - y) +