<!-- Beginfunction reponse(form){for(var i=0;i<form.length;i++){if(form[i].checked){break}}var repondu=""if(i<form.length){repondu=form[i].value}return repondu;}function affiche(form){var a=form.a.value;var b=form.b.value;var ch="";var reste=eval(a%b);var nreste=nespace(reste);var na=nespace(a);var nb=nespace(b);var quotient=eval(a-reste);var nq=0;var car="";quotient=eval(quotient/b);nq=nespace(quotient);if(nq>nb){nb=nq;};ch="reste = "+reste;ch=ch+", quotient = "+quotient;ch=ch+"\n\nOn a bien :\n\n "+a+" = "+b+"x"+quotient+" + "+reste;ch=ch+"\n "+reste+" < "+b;ch=ch+"\n\n\n\n";ch=ch+a+"|"+b+" ";nreste=eval(na-nreste);ch=ch+"\n"+espace(nreste," ")+reste+"|"+espace(nb,"-");ch=ch+"\n"+espace(na," ")+"|"+quotient;if((a!="")&&(b!="")){document.formulaire.resultat.value=ch;}else{document.formulaire.resultat.value="valeurs de a et b attendues !!";};}function nespace(a){var ch=a.toString();var long=ch.length;return long;}function espace(n,car){var cha="";for(var i=1;i<=n;i++){cha=cha+car;};return cha;}
