Putpixel Fonksiyonu ile Köşegen Çizmek

DrogbA

Forum Üyesi
Katılım
27 Ara 2020
Mesajlar
3,440
Tepkime puanı
0
Puanları
36
PHP:
 #include <stdio.h>
#include <conio.h>
#include <graphics.h>
#include <dos.h>

int main()
{
    int gdriver=DETECT,gmode;
        float a,b;

    initgraph(&gdriver,&gmode,"");

       for(a=0,b=0;a<getmaxx(),b<getmaxy();a+=0.2,b+=0.2){
            putpixel(4.0*a,3.0*b,2);
}

    getch();
    closegraph();
}
 
metal işleme
Üst