diziler_2

by mugehalici

int [][] sayi = new int [5][5];

PFont myFont;
void setup()
{
size(600, 600);
background(250);
myFont = loadFont("ACaslonPro-Bold-48.vlw" );
}
void draw()
{
for (int j= 0; j<5; j++)
{
for (int i=0; i<5; i++)
{
sayi[i][i]=0;
}
}

for (int j= 0; j<5; j++)
{
for (int i=0; i<5; i++)
{
print (sayi[i][i]=0);
}
println();
}

fill(0);
textFont(myFont, 30);

for (int j= 0; j<5; j++)
{
for (int i=0; i<5; i++)
{
text(sayi[i][i], 50+i*100, 50+j*100);
}
}
}

Ekran Alıntısı

Advertisements