for (i=0;i<n;i++) { printf("Please enter the %d%s array item\n",i,i==1?"st":"th"); scanf("%lf",d+i); }