Fundamentals
Numbers
Data Types
Integers
public static class Kata { public static bool IsOdd(int i) => (i & 1) == 1; }
- public static class Kata
- {
public static bool IsOdd(int input){return ((input % 10 == 1) || (input % 10 == 3) || (input % 10 == 5) || (input % 10 == 7) || (input % 10 == 9));}- public static bool IsOdd(int i) => (i & 1) == 1;
- }