Ad
Fundamentals
Numbers
Data Types
Integers

With lambda expression

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