i want to calculate the sizetotal but also round off the sizetotal. How can i do that?
Code:
#define MINE_DENSITY 0.6
void placeMines(char minefield[MAX_GRID][MAX_GRID], unsigned size)
{
float sizetotal;
sizetotal = size * MINE_DENSITY;
printf("%d", sizetotal);
}

