// VERSION PROVISOIRE // 1. Des améliorations sont prévues pour la saisie des nombres. // 2. Je n'oublie pas les traits qui manquent. import math; import fontsize; usepackage("fourier"); defaultpen(fontsize(20pt)); size(10cm,0); void jalousie(int[] a, int[] b) { int[][][] produit=new int[a.length][b.length][2]; real decal=0.25; int[] totaldiag; for(int z=0; z=0) { produit[x][y][0]=(a[x]*b[y])%10; produit[x][y][1]=(int) ((a[x]*b[y]-produit[x][y][0])/10); totaldiag[d]+=produit[x][y][0]; totaldiag[d+1]+=produit[x][y][1]; label(string(produit[x][y][0]),(-x+decal,y+1-b.length-decal),Pen(d)); label(string(produit[x][y][1]),(-x-decal,y+1-b.length+decal),Pen(d+1)); ++x;--y; } ++d; } label(string(a[0]),(0,1)); d=0; int x=0, y=-b.length, retenue; for(int c=0; c