diff --git a/sumSquareDifference/main.s b/sumSquareDifference/main.s new file mode 100644 index 0000000..0f2dba2 --- /dev/null +++ b/sumSquareDifference/main.s @@ -0,0 +1,14 @@ +.global func +.section .text + +func: @ Find the difference between the sum of the squares and the square of the sum, for the first hundred numbers. +@ (a^2+b^2) = a^2 + b^2 + 2ab +@ Therefore, the difference must be 2ab + + + + + + + +.section .data