Asked by SURESH

The algorithm below finds the product of first 10 numbers .

Answers

Answered by oobleck
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
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions