Can anyone teach me how to write a c program that accepts 10 integers and output the product of the numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone teach me how to write a c program that accepts 10 integers and output the product of the numbers

22nd Sep 2022, 8:14 AM
CRUSTY
CRUSTY - avatar
2 Answers
+ 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
22nd Sep 2022, 9:43 AM
Lisa
Lisa - avatar
+ 4
Complete lesson of loops and also array lesson in C helps. hen try it yourself first and post your attempt if unsolved...
22nd Sep 2022, 8:19 AM
Jayakrishna 🇮🇳