raleman 0 Newbie Poster

I am not very good at this. I have been trying this for days. Can anyone help?

Given 2 arrays 1 to 20, compute the sum of the products.

DIM p(1 to 20)
DIM Q(1 to 20)
for i=1 to 20
read q(i)
let a=i*q(i)
print a

next i
DATA 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.