Ad
Fundamentals
Numbers
Data Types
Integers
Code
Diff
  • public static class Kata
    {
        public static bool IsOdd(int input, int div)
        {
            if (input % div == 0)
              return true;
            return false;
        }
    }
    • public static class Kata
    • {
    • public static bool IsOdd(int input)
    • public static bool IsOdd(int input, int div)
    • {
    • if (input % 2 == 0)
    • {
    • return false;
    • }
    • else
    • {
    • return true;
    • }
    • if (input % div == 0)
    • return true;
    • return false;
    • }
    • }