PDA

View Full Version : C# valuearrays


jericho69
12-01-2004, 05:29 PM
Valuearray size
[0] 7
[1] 10
[2] 12
[3] 14
[4] 16
[5] 18
[6] 19
[7] 21
[8]

x=0
for(i=1;i<=size;i++)
x+=valuearray[i];
console.writeline("x={0}",x);

I just need what the console.writeline is going to put on the screen

If you guys could please help I would really appreciate it

SirCodeAlot
12-01-2004, 06:44 PM
Looks like it will add up the values, starting at array index 1. For example:

10
22
36

... And so on.

...What class is this for...? :)