%include 'stud_io.inc';
global _start ;
section.bss;
array resd 99 ;
section .text ;
_start: ;
mov ecx,99 ;
mov esi,array ;
mov eax,2;
ld: ;
mov [esi],eax ;
inc eax ;
add esi,4 ;
cmp eax, 99 ;
jl ld;
mov eax,0 ;
mov ebx,1 ;
lp: ;
mov ebx,[esi];
mul ebx;
add eax, [esi];
add esi,4;
loop lp;
Finish;