Tra Từ Điển

Thời gianTiếtThứ 2Thứ 3Thứ 4Thứ 5Thứ 6
8g40 - 9g101Tiếng Việt
Tiếng Anh
Tiếng Việt
Tiếng Việt
9g10 - 9g302Nghỉ giải lao
Tiếng Anh
Nghỉ giải lao
Nghỉ giải lao
9g30 - 10g3Toán
Toán
Toán

Thursday, May 6, 2021

(JAVASCRIPT) NHẬP VÀO 1 SỐ NGUYÊN N, in ra 1 bảng gồm 1 dòng và n cột // for(i=1;i<=n;i++)

Untitled Document //NHẬP VÀO 1 SỐ NGUYÊN N, in ra 1 bảng gồm 1 dòng và n cột //NHẬP VÀO 1 SỐ NGUYÊN N, in ra 1 bảng gồm 1 dòng và n cột

<!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>&nbsp;</td>");
document.write("</tr></table>");
    </script>

</body>
</html>

0 comments:

Post a Comment