<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
//NHẬP VÀO 1 SỐ NGUYÊN N, in ra 1 bảng gồm 1 dòng và n cột
<script type="text/javascript">
n=parseInt(prompt("Nhập số bất kỳ: ",""));
document.write("<table border='1' width='60%'><tr>");
for(i=1;i<=n;i++)
document.write("<td> </td>");
document.write("</tr></table>");
</script>
</body>
</html>
0 comments:
Post a Comment