Fundamentals
Numbers
Data Types
Integers
public static class Kata { public static bool IsOdd(int input) { bool Odd = false; if (input % 2 == 0) Odd = false; else Odd = true; return Odd; } }
- public static class Kata
- {
- public static bool IsOdd(int input)
- {
return input % 2 != 0 ? true : false;- bool Odd = false;
- if (input % 2 == 0)
- Odd = false;
- else
- Odd = true;
- return Odd;
- }
- }