========= test #1===============
   L   
int array[array_size], 2<=array_size<=100
        Ctrl-C (exit)
    2  100 ===> 22

================================================================
          Array:
     -58      77     -35     121    -100      62      -5      52     -81      60
     -94      99     -43      41     -44      85    -120      54     -87      38
     -86      75
   
    1  22 ===> 2

C++ function calculation
75*38 = 2850

Asm function calculation
75*38 = 2850

========= test #2===============
   L   
int array[array_size], 2<=array_size<=100
        Ctrl-C (exit)
    2  100 ===> 50

================================================================
          Array:
     -14      23     -17     118     -11      98     -24     117     -53      24
     -25      58     -27      56    -118      93     -93      50     -62      33
     -84     115      -4      33     -28     102     -23     118     -80     100
     -96     119     -52      24      -3      57     -53      78    -129      86
    -112      30     -97      29     -28      13     -66      87     -30       3

   
    1  50 ===> 5

C++ function calculation
3*87*13*29*30 = 2.95191e+06
!!!    : 65535

Asm function calculation
3*87*13*29
:      !!!

========= test #3===============
   L   
int array[array_size], 2<=array_size<=10000
        Ctrl-C (exit)
    2  100 ===> 100

================================================================
          Array:
     -58      94     -42      25     -45      18    -110      65    -119      44
    -129     117     -14      85     -41      22      -5      13     -99      89
     -81       5     -61      11     -53     103     -89      10     -12      95
     -42      29     -30     122     -11       4     -62      13     -78      32
      -4      86     -78      87     -68     111     -73      40      -2      92
    -101      32     -57      81     -53       9      -4      76     -42      22
     -20      86     -49     103     -15     106    -125      22     -29      88
     -50      73    -102      44    -126      77     -47     101     -50      85
    -105       0     -32     106     -75      69     -33       1     -92      29
     -13     106    -127      24     -49     108    -107      94     -79     102

   
    1  100 ===> 2

C++ function calculation
102*94 = 9588

Asm function calculation
102*94 = 9588

========= test #4===============
   L   
int array[array_size], 2<=array_size<=100
        Ctrl-C (exit)
    2  100 ===> 35
================================================================
          Array:
     -15      85     -55      55      -8      85     -85      31     -48      51
     -10       0     -47      75     -44       3     -35      17     -80      38
     -92      86     -78     111     -87      24     -45     106     -89      71
     -81     108     -27      74     -36
   
    1  35 ===> 5

C++ function calculation
74*108*71*106*24 = 1.44355e+09
!!!    : 65535

Asm function calculation
74*108*71
:      !!!

========= test #5===============
   L   
int array[array_size], 2<=array_size<=100
        Ctrl-C (exit)
    2  100 ===> 5
Enter A[0]
    -32768  32767 ===> -23
Enter A[1]
    -32768  32767 ===> 22
Enter A[2]
    -32768  32767 ===> 33
Enter A[3]
    -32768  32767 ===> 222
Enter A[4]
    -32768  32767 ===> -22
================================================================
          Array:
     -23      22      33     222     -22
   
    1  5 ===> 3

C++ function calculation
222*33*22 = 161172
!!!    : 65535

Asm function calculation
222*33*22
:      !!!

========= test #6===============
   L   
int array[array_size], 2<=array_size<=100
        Ctrl-C (exit)
    2  100 ===> 5
Enter A[0]
    -32768  32767 ===> -21
Enter A[1]
    -32768  32767 ===> 0
Enter A[2]
    -32768  32767 ===> -123
Enter A[3]
    -32768  32767 ===> 0
Enter A[4]
    -32768  32767 ===> -21
================================================================
          Array:
     -21       0    -123       0     -21
   
    1  5 ===> 3

C++ function calculation
C++:      !!!

Asm function calculation
ASM:      !!!