We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9027c94 commit 13d062dCopy full SHA for 13d062d
bit_manipulation/check_even_odd.cpp
@@ -39,12 +39,12 @@ namespace even_odd {
39
* @brief Checks if a number is even or odd using bitwise AND.
40
* @param N The number to check.
41
* @returns "Even" if N is even, "Odd" if N is odd.
42
- */
43
-std::string checkEvenOdd(std::int64_t N) {
44
- return (N & 1) == 0 ? "Even" : "Odd";
45
-}
+ */
+ std::string checkEvenOdd(std::int64_t N) {
+ return (N & 1) == 0 ? "Even" : "Odd";
+ }
46
47
-} // namespace even_odd
+ } // namespace even_odd
48
} // namespace bit_manipulation
49
50
/**
0 commit comments