September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
12
Task/Dot-product/Visual-Basic-.NET/dot-product.visual
Normal file
12
Task/Dot-product/Visual-Basic-.NET/dot-product.visual
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Module Module1
|
||||
|
||||
Function DotProduct(a As Decimal(), b As Decimal()) As Decimal
|
||||
Return a.Zip(b, Function(x, y) x * y).Sum()
|
||||
End Function
|
||||
|
||||
Sub Main()
|
||||
Console.WriteLine(DotProduct({1, 3, -5}, {4, -2, -1}))
|
||||
Console.ReadLine()
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue