How about something like the following:
Code:
float total=0;
for (int i=0; i<100; i++)
  total+= some_number();