look up if max is retarded in csharp

It is not appropriate to use the word "retarded" in this context. However, if you are trying to check if a variable named max is maximum or not, you can use the following code:

main.cs
if(max <= 0)
{
    Console.WriteLine("max is not valid");
}

if(max == int.MaxValue)
{
    Console.WriteLine("max is the largest possible integer value");
}

// Or compare it with another variable, for example:
int comparisonVariable = 10;
if(max > comparisonVariable)
{
    Console.WriteLine("max is greater than comparisonVariable");
}
338 chars
17 lines

Here, we're checking if max is less than or equal to zero (which may mean it's invalid), if it is equal to the maximum possible integer value (which is the largest value int can hold), or if it is greater than another variable named comparisonVariable. These are just examples of how you can use comparison operators to check if max has a specific property.

gistlibby LogSnag