Работы по программированию

This commit is contained in:
IgorVolochay
2026-07-28 09:56:54 +03:00
parent b85155ff95
commit 8602b7e845
73 changed files with 4090 additions and 0 deletions
@@ -0,0 +1,23 @@
#include <graphics.h>
#include <iostream>
void plotInequality() {
for (int x = -10; x <= 10; x++) {
if (4 * x - x * x <= 0) {
putpixel(300 + x * 10, 300 - (4 * x - x * x) * 10, WHITE);
} else {
putpixel(300 + x * 10, 300 - (4 * x - x * x) * 10, WHITE);
}
}
}
int main() {
int gd = DETECT, gm;
initgraph(&gd, &gm, "");
plotInequality();
getch();
closegraph();
return 0;
}