Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
10
Task/Dot-product/Ring/dot-product.ring
Normal file
10
Task/Dot-product/Ring/dot-product.ring
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
aVector = [2, 3, 5]
|
||||
bVector = [4, 2, 1]
|
||||
sum = 0
|
||||
see dotProduct(aVector, bVector)
|
||||
|
||||
func dotProduct cVector, dVector
|
||||
for n = 1 to len(aVector)
|
||||
sum = sum + cVector[n] * dVector[n]
|
||||
next
|
||||
return sum
|
||||
Loading…
Add table
Add a link
Reference in a new issue