#include #include void main(int argc, char* argv[]) { int i, nsteps; u8int start, end; u8int* row; float step; start = 10; end = 1; nsteps = 4; row = malloc(nsteps * sizeof(u8int)); print(" Δ: %d\n", (end - start)); print(" step = %f / (%d - 1)\n", (float)(end - start), nsteps); step = (float)(end - start) / (nsteps -1); print(" step: %f\n", step); for (i = 0; i < nsteps; i++) { print("%f %d ", (step * i), (int)(step * i)); row[i] = start + (int)(step * i); print("%ud\n", row[i]); } exits(0); }