0
Can anyone teach me how to write a c program that accepts 10 integers and output the product of the numbers
2 Réponses
+ 2
You can approach the task like this:
* initialize an integer variable "result" with one
* make a loop that loops 10 times
* on each iteration of the loop, take one integer as input
* multiply the input integer with the result variable and re-assign to result
* after the loop, output the result variable
+ 4
Complete lesson of loops
and also array lesson in C helps.
hen try it yourself first and post your attempt if unsolved...