here's my code
class Program
{
static void Main(string[] args)
{
int num1, num2, num3, num4, num5 = 0;
int categoryA =20000;
int categoryB = 75000;
int categoryC = 5000;
int categoryB1 = 60000;
Console.WriteLine("Please enter 5 numbers: ");
num1 = Int32.Parse(Console.ReadLine());
num2 = Int32.Parse(Console.ReadLine());
num3 = Int32.Parse(Console.ReadLine());
num4 = Int32.Parse(Console.ReadLine());
num5 = Int32.Parse(Console.ReadLine());
if (num1 >= categoryC)
{
if (num1 <= categoryA)
{
Console.WriteLine("Category A");
}
else
{
if (num1 >= categoryB1)
{
if (num1 <= categoryB)
{
Console.WriteLine("Category B");
}
else
{
Console.WriteLine("Category C");
}
}
else
{
Console.WriteLine("Category C");
}
}
if (num2 >= categoryC)
{
if (num2 <= categoryA)
{
Console.WriteLine("Category A");
}
else
{
if (num2 >= categoryB1)
{
if (num2 <= categoryB)
{
Console.WriteLine("Category B");
}
else
{
Console.WriteLine("Category C");
}
}
else
{
Console.WriteLine("Category C");
}
}
if (num3 <= categoryA)
{
Console.WriteLine("Category A");
}
else
{
if (num3 >= categoryB1)
{
if (num3 <= categoryB)
{
Console.WriteLine("Category B");
}
else
{
Console.WriteLine("Category C");
}
}
else
{
Console.WriteLine("Category C");
}
}
if (num4 <= categoryA)
{
Console.WriteLine("Category A");
}
else
{
if (num4 >= categoryB1)
{
if (num4 <= categoryB)
{
Console.WriteLine("Category B");
}
else
{
Console.WriteLine("Category C");
}
}
else
{
Console.WriteLine("Category C");
}
}
if (num5 <= categoryA)
{
Console.WriteLine("Category A");
}
else
{
if (num5 >= categoryB1)
{
if (num5 <= categoryB)
{
Console.WriteLine("Category B");
}
else
{
Console.WriteLine("Category C");
}
}
else
{
Console.WriteLine("Category C");
}
}
}
}
else
{
Console.WriteLine("category C");
Console.ReadKey();
}
Console.ReadKey();
}
}
}