Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- for (int iteration = 1; iteration <= 31; iteration++)
- {
- for (int eax = 0; eax <= 16; eax++)
- {
- int and_result = eax & iteration; // and eax, iteration
- int mod_result = eax % (iteration + 1);
- std::cout << "[" << iteration << "] result: " << (and_result == mod_result) << std::endl;
- }
- std::cout << std::endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement