2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
5
Task/Dot-product/ZX-Spectrum-Basic/dot-product.zx
Normal file
5
Task/Dot-product/ZX-Spectrum-Basic/dot-product.zx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
10 DIM a(3): LET a(1)=1: LET a(2)=3: LET a(3)=-5
|
||||
20 DIM b(3): LET b(1)=4: LET b(2)=-2: LET b(3)=-1
|
||||
30 LET sum=0
|
||||
40 FOR i=1 TO 3: LET sum=sum+a(i)*b(i): NEXT i
|
||||
50 PRINT sum
|
||||
Loading…
Add table
Add a link
Reference in a new issue