PROBLÈMECode source <script language="JavaScript"><!-- ; //-----------------------------------------algorithme---------------------- nb=168/4; i=nb; x=nb; while(i>0) { x=x-1; dr=x*1; ch=42-dr; ch2=ch*2; t=(dr+ch2); if (t==69){ document.write(dr+" bosses de dromadaires + "+ch2+" bosses de chameaux = "+t+" bosses. <BR>"); document.write("Il y a donc "+dr+" dromadaires et ("+ch2+" : 2) "+ch+" chameaux.<BR><BR>"); } i--; } //----------------------------------------------------------------------- document.write(); document.write(); // end hide --> </script> |