Hello. I have an array as such and need to multiply all the values of it by each other and put that as a variable.
1 2 3 4 5 6
//for example
int array1[100]
//assume i have already input the values of each element properly up to, say, element 4
//I need to now multiply all of those values together. I think I need the size of the array to control
//what it multiplies(I know how to find size) If anyone could give an example code snippet of how
//to do what I asked, that would be great. Thanks everyone in advance!
Thank you but there is a slight problem. end and begin are not part of std and when I remove the std:: it says that they are not declared in this scope.
As it turns out, I made a little error in the numberofelements integer. Thank you though. I didn't understand much of what you gave. I'm not thst advanced yet. Thank you! P.S. My program is finally complete!