Home | History | Annotate | Download | only in test
      1 
      2 #include <stdio.h>
      3 
      4 double a[10];
      5 
      6 int main ( void )
      7 {
      8   int i;
      9   double s;
     10   for (i = 0; i < 10; i++)
     11     a[i] = 11.11 * i;
     12   s = 0.0;
     13   for (i = 0; i < 10; i++)
     14     s += a[i];
     15   printf("result = %f\n", s);
     16   return 0;
     17 }
     18