The algorithm below finds the product of first 10 numbers .

p=1

for i=1..10 {
p *= n[i]
}
This finds the product of the first 10 numbers in an array,
If you just mean the numbers 1-10, then change n[i] to just i