3 ms·
Only if you have no workaround or ability to implement modulo operations. If you were really a capable coder, but didn't know of %, you would just say, "I don'
by SilasX 12y ago
Only if you have no workaround or ability to implement modulo operations. If you were really a capable coder, but didn't know of %, you would just say, "I don't know of a library function for finding the remainder, so I'll just plug in remainder(x, 3) here." Then later, if such completeness is desired, implement that function.