organize keyboard input
You must specify a one-dimensional array of elements from the keyboard This array is necessary to find the arithmetic mean Remove items more arithmetic mean Print the resulting array of elements (elements with no more than the arithmetic mean)
;srednee arifmiticheskoe
data segment
mas dw 2, 4, 6, 8, 10
n dw 0
ends
stack segment
dw 128 dup(0)
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
xor ax, ax
xor si, si
mov cx, 5
@1:
add ax, mas[si]
add si, 2
inc n
loop @1
cwd
idiv n
mov ax, 4c00h ; exit to operating system.
int 21h
ends
end start ; set entry point and stop the assembler.