does anyone know about arrays and coding? I am taking courses involving VS2005 and I have to do this…
Define an array of integer data type with 1000 elements. place into each element its index number, that is into the first element enter the value 0 and into the second the value 1 and so on.
Sum the values of every 10th element starting with the 50th element all the way to the 650th into dblsum. You will need to define this variable.
calculate the product (multiply) of all the even indexed elements between elements 300 and 500 but only those with an even value in them. To do this you will have to check if the content is divisible by 2.
So lost…
I guess I could start it up as
Dim intarray(999) as integer
intarray(0) = “1”
intarray(1) = “2”
… and so on… but for the other parts anyone have a clue?