Added new problem - problem 6
This commit is contained in:
14
sumSquareDifference/main.s
Normal file
14
sumSquareDifference/main.s
Normal file
@@ -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
|
Reference in New Issue
Block a user