Change line 20 to:
Code:
  printf( "%f\n", sr );
And line 38 to:
Code:
  return (double)wynik / n;