the code read .txt file (with values(double)).
here is how the .txt file looks:
99.43
101.17
100.66
98.24
101.03
101.69
100.30
97.10
96.39
94.03
93.66
Press any key to continue...
what i want exactly to do is to add one method like:
public static calculate()
{
}
to do the following:calculate the sum of the elements in the array and also calculate the sum of the first 12 elements.
something like this:
for(int i=0; i<=11; i++)
{
sum12 = sum12 + Close[i];
}
and
for(int i=0; i<=close.length; i++)
{
sum= sum+ close[i];
}
so that i can this method in main function.
thanks.

New Topic/Question
Reply



MultiQuote






|