Ad
Fundamentals
Numbers
Data Types
Integers

This simply does the same but in just one line

Code
Diff
  • public static class Kata
    {
        public static bool IsOdd(int input) => input%2==1;       
    }
    • public static class Kata
    • {
    • public static bool IsOdd(int input)
    • {
    • return input % 2 != 0;
    • }
    • public static bool IsOdd(int input) => input%2==1;
    • }