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
    
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!
                                            
                Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.