graphsize 800,500 cls clg l1$="J'ai 12 caramels et 16 chocolats." l2$="J'offre à mes invités des paquets tous semblables" l3$="et je donne toutes mes friandises." l4$="Combien ai-je d'invités?" print l1$ print l2$ print l3$ print l4$ print"---------------------------------------------------" print i = 16 n2=12 n1=16 while(i>0) a=(n2/i) b=(n1/i) x=(n2%i) y=(n1%i) e=i*a f=i*b invite$="invité" if (i>1)then fin$="s" end if if (i<2)then fin$=" " end if if (x=0) then if (y=0) then print a+" x "+i+" = "+e+"" print b+" x "+i+" = "+f print "Solution possible : Il y a "+i+" "+invite$+fin$ print "Chaque invité a "+a+" caramels et "+b+" chocolats." print print "-------------------------------------------------" end if end if i-- end while