je veux realiser un tableau d une table de multiplication .dans la colone 1 il y a x puis 1 à 9 et dans la ligne 1 il ya aussi x pui 1 à 9 .
ex: x 1 2 3 4 5
1
2
3
pour cela j ai fait le programe suivant en javascript :
<html>
<head><title>tableau de multiplication</title></head>
<script language="javascript">
var i ,j ;
var tab= new Array[10,10] ;
tab [0] [0] ="x" ;
for(j=1;j<=9;j++)tab[1,j]=j;
for(i=1;i<=9;i++)tab[i,1]=i;
i=2 ;
do
{
for(j=1;j<=9;j++)tab[i,j]=i*j;
i++
}
while(i<=9)
i=0;
do
{
for(j=0;j<=9;j++)document.write(tab[i,j],"
");
}
while(i<=9)
</script>
</html>
sa ne marche pas
est ce ke vs pouriez trouvez ce ki cloche et eventuelement me proposez d autres solutions
merci d' avance