#include <stdio.h>
#include <math.h>

#define N 10

main() {
  int i;
  int intarr[N];
  double darray[N];

  /* Fill in the arrays */

  for (i=0;i<N;i++) {
    intarr[i]=pow(i,2);
    darray[i]=intarr[i]*M_PI;
  }

  /* Print those elements of the double array which are smaller than 100 */

  i=0;
  while (darray[i]<100) {
    printf("Element no %d : %12.9lf\n",i+1,darray[i]);
    i++;
  }

  if (i<=N/2)
    printf("\nLess than half the array is smaller than 100.\n\n");
  else
    printf("\nMore than half the array is smaller than 100.\n\n");

}

