Assembly Language Coding Challenge 1 Solution

preview_player
Показать описание
Code the sum of n terms of an arithmetic progression.
S = (n/2)(2a+(n-1)d)
You can get access to the machine , assembler etc from Code The Machine here:
Support me with PayPal
Рекомендации по теме
Комментарии
Автор

As pointed out by Tim - ' the same number in effect added twice which is the same as 2xnumber which is always positive giving 2S then we always get an integer when we divide by 2 ' so we will never run into division of an odd number so we can use integers for all values of n (even and odd).

RossMcgowanMaths
welcome to shbcf.ru