Code:

#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int max;
int min;
int interval;
int numSize;
int i;
int *num;
int *numSquare;
printf( "Enter a minimum value: ");
scanf( " %d", &min);
printf( "Enter a maximum value: ");
scanf( " %d", &max);
printf( "Enter an interval: ");
scanf( " %d", &interval);
//numSize = ((max - min) / interval ) + 1; //this works
numSize = ceil( (float) (max - min) / interval ) + 1; //this doesnt
//printf( " %d", numSize); //use this to show the value of numSize
num = malloc(numSize * sizeof(int));
numSquare = malloc(numSize * sizeof(int));
for (i = 0; i < numSize; i++)
{
num[i] = min + (i * interval);
numSquare[i] = num[i] * num[i];
printf( " %3d squared = %5d\n", num[i], numSquare[i]);
}
free (num);
free (numSquare);
num = NULL;
numSquare = NULL;
return 0;
}

That's it unfortunately