The Problem:
A box can hold 53 items. If a person has 56 items, it will require 2 boxes to hold them. Box 1 will hold 53 items and box 2 will hold 3.
How do i repeat the above where 53 is a constant, unchanging value and 56 is a variable for each box:
Math.Ceiling(Convert.ToDecimal(intFeet / 53))
what i have so far that is:
int TotalItems = 56;
int Boxes = Math.Ceiling(Convert.ToDecimal(intFeet / 53));
for (int i = 0; i < Boxes; i++)
{
int itemsincurrentbox=??
}