<html>
<head>
<script language="javascript">
var a [10][10]= new Array ();
var i,j,c,n;
n=prompt("Enter how many lines");
a[1][1]=1;
document.write(a[1][1]);
a[2][1]=1;
a[2][2]=2;
a[2][3]=1;
document.write(a[2][1]+" "+a[2][2]+" "a[2]a[3]);
for (i=3;i
a[1][1]=1;
document.write(a[1][1]);
c=3;
for (j=2;j
a[i][j]=a[c-1][c+1]-a[i-1][c-
document.write(a[i][j]);
c=c+1;
j=j+1;
}
a[i][j]=1;
document.write(a[i][j]);
}
</script>
</head>
<body>
</body>
</html>