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) Vòng lặp for - Bảng cửu chương // for(i=1;i<=10;i++)

Untitled Document //Vòng lặp for - Bảng cửu chương


 
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<script type="text/javascript">
n=parseInt(prompt("Nhập vảo số: ",""));
for(i=1;i<=10;i++)
{
ketqua = n * i;
document.write(+n+" X "+i+" = "+ketqua);
document.write("<br/>");
}   
    </script>
</body>
</html>

0 comments:

Post a Comment