Untitled

mail@pastecode.io avatar
unknown
csharp
2 years ago
350 B
2
Indexable
Never
public int CalculateFeePercent(long money)
        {
            switch (money)
            {
                case 0:
                    return 0;
                case > 0 and <= 100:
                    return 2;
                case > 100:
                    return 1;
                
            }

            return 0;
        }