Title Tinh N!
.model small
.stack 50h
.data
       nhap db 'Nhap n = $'; khai bao chuoi ki tu hien ra man hinh
       kqua db 10, 13, 'N! = $'; khai bao chuoi ki tu in ra man hinh ket qua cua N!, voi cac bien 10, 13 dung de xuong dong va hien ket qua o dau dong tiep theo

.code
Main proc
	mov ax, @data
	mov ds, ax

	mov ah, 9   ;Chuc nang so 9 cua ngat 21
	lea dx, nhap;Lay dia chi chuoi ki tu "nhap" dat vao dx
	int 21h     ;Goi ngat

	mov ah, 4Ch ;Ket thuc
	int 21h
  main endp
end main