Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Dot-product/ZX-Spectrum-Basic/dot-product.basic
Normal file
5
Task/Dot-product/ZX-Spectrum-Basic/dot-product.basic
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