#include #include int main() { int gd = DETECT, gm; initgraph(&gd, &gm, ""); int centerX = getmaxx() / 2; int centerY = getmaxy() / 2; // Draw sun setfillstyle(SOLID_FILL, YELLOW); circle(centerX, centerY, 50); floodfill(centerX, centerY, WHITE); // Draw petals int numPetals = 12; for (int i = 0; i < numPetals; ++i) { float angle = i * (360.0 / numPetals); float x = centerX + 60 * cos(angle * 3.14159 / 180); float y = centerY + 60 * sin(angle * 3.14159 / 180); setfillstyle(SOLID_FILL, COLOR(255, 165, 0)); // RGB for orange circle(x, y, 20); floodfill(x, y, WHITE); } // Draw stem setcolor(COLOR(0, 128, 0)); // RGB for green setlinestyle(SOLID_LINE, 0, 5); // Line style: Solid, Thickness: 5 pixels line(centerX, centerY + 50, centerX, centerY + 500); getch(); closegraph(); return 0; }