Matrix with two diagonals: Difference between revisions

Content added Content deleted
m (→‎GUI/online: MINSIZE now ok, return IUP_IGNORE for help/+/-)
(Added Processing implementation)
Line 2,167: Line 2,167:
1 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 1
</pre>
</pre>

=={{header|Processing}}==
<lang java>
//Aamrun, 27th June 2022

size(1000,1000);

textSize(50);

for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
noFill();
square(i*100,j*100,100);
fill(#000000);
if(i==j||i+j==9){
text("1",i*100+50,j*100+50);
}
else{
text("0",i*100+50,j*100+50);
}
}
}


=={{header|Python}}==
=={{header|Python}}==