how would i go about doing this?
say i have a Recursion that works with a 2d array.
What would i have to do to to have just the decimal out of a float, or am i stuck with pointer fun?Code:int box[3][3]; int Recursion(int num); int main(void) { int row, column; Recursion(0); return 0; } int Recursion(int num); { if (num>9) { return num; } else { row=num/3; column=???????? box[row][column]=rand()%9+1; Recursion(num+1); } }