![](https://rs.olm.vn/images/background/bg2023161448069.jpg?v=2?)
![](https://rs.olm.vn/images/avt/1.png?13)
Ngô Hoàng Thạch
Giới thiệu về bản thân
![](https://rs.olm.vn/images/medal_mam_non.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_win_1.png)
![](https://rs.olm.vn/images/medal_tan_binh.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_win_1.png)
![](https://rs.olm.vn/images/medal_chuyen_can.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_win_1.png)
![](https://rs.olm.vn/images/medal_cao_thu.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_win_1.png)
![](https://rs.olm.vn/images/medal_thong_thai.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_win_1.png)
![](https://rs.olm.vn/images/medal_kien_tuong.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_win_1.png)
![](https://rs.olm.vn/images/medal_dai_kien_tuong.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_ngoi_sao.png)
![](https://rs.olm.vn/images/medal_win_1.png)
n = int(input('Nhập số tự nhiên n: '))
T = 1
for i in range(1,n+1):
T *= i
print('Tích các số từ 1 đến',n,'là:',T)
#Khoi lenh co the phat sinh loi
try:
#Nhap gia tri tu ban phim
#Ep kieu du lieu sang so nguyen
n = int(input())
#Su dung cau truc re nhanh xu ly truong hop n nam ngoai (1:9)
if n<1 or n>9:
print("Chi tinh duoc bang cuu chuong 1 den 9 thoi!")
else:
#Su dung vong lap for voi 1 <= i <= 9
for i in range(1, 10):
#Xuat theo dinh dang de bai yeu cau
print("{} x {} = {}".format(n, i, n*i))
#Khoi lenh duoc thuc thi khi loi xay ra
except:
print("Dinh dang dau vao khong hop le!")
n = int(input('Nhập số tự nhiên n: '))
T = 1
for i in range(1,n+1):
T *= i
print('Tích các số từ 1 đến',n,'là:',T)