namespace ConsoleApp1
{
class Program
{
const int ONE_BATCH = 20;
static void Main(string[] args)
{
float amountOfButtons, batchesNeeded;
string userInput;
Console.WriteLine("How many puttons will you be using?");
userInput = Console.ReadLine();
amountOfButtons = Convert.ToSingle(userInput);
batchesNeeded = amountOfButtons / ONE_BATCH;
Math.Ceiling(batchesNeeded);
Console.WriteLine("You need to order {0} batches of buttons", batchesNeeded);
Console.ReadLine();
}
}
}


namespace ConsoleApp1
{
class Program
{
const int ONE_BATCH = 20;
static void Main(string[] args)
{
float amountOfButtons, batchesNeeded;
string userInput;
Console.WriteLine("How many buttons will you be using?");
userInput = Console.ReadLine();
amountOfButtons = Convert.ToSingle(userInput);
batchesNeeded = (float)Math.Ceiling(amountOfButtons / ONE_BATCH);
Console.WriteLine("You need to order {0} batches of buttons", batchesNeeded);
Console.ReadLine();
}
}
}
int input = ReadUserInput(); int batches = (input + batchSize - 1) / batchSize;