ÿþ<!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8" /> <head> <body> <script type="text/javascript"> var x=prompt("Podaj górn linijke: "); var y=prompt("Podaj boczn linijke: "); document.write('<table border="1" cellpadding="6">') document.write('<tr>'); var a=0; do { document.write('<td>' +a +'</td>'); a++; }while( a<=x ); document.write('</tr>'); var b=1; do { document.write('<tr>' +'<td>' +b +'</td>'); var a=1; do { document.write('<td>' +b*a +'</td>'); a++; }while( a<=x ) document.write('</tr>'); b++; }while( b<=y ); document.write('</table>'); </script> </body> </html>