How to compare each value in an array and add those less than 50? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to compare each value in an array and add those less than 50?

numbers DWORD 10,60,20,33,72,89,45,65,72,18 limit DWORD 50 sum DWORD 0 Use a loop to access 10 values in an array If a value less than or equal 50, it is added to sum Therefore, the sum will be 126 displayed. Use jmp and loop instructions to get Anyone helps??

26th May 2017, 8:29 PM
Vy Vo
Vy Vo - avatar
2 Answers
+ 2
wich language you want to use ?
27th May 2017, 4:46 AM
Anibal Lopes
0
Masm
3rd Jun 2017, 12:54 AM
Vy Vo
Vy Vo - avatar