[ create a new paste ] login | about

Link: http://codepad.org/tD7g8shT    [ raw code | output | fork ]

C++, pasted on Jun 18:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

int main() {
  for (int a = 0; a < 64; ++a) {
    for (int b = 0; b < 64; ++b) {
      if ((a + b) == (a ^ b))
        std::cout << "# ";
      else
        std::cout << "  ";
    }
    std::cout << std::endl;
  }
  return 0;
}


Output:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
#   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   
# #     # #     # #     # #     # #     # #     # #     # #     # #     # #     # #     # #     # #     # #     # #     # #     
#       #       #       #       #       #       #       #       #       #       #       #       #       #       #       #       
# # # #         # # # #         # # # #         # # # #         # # # #         # # # #         # # # #         # # # #         
#   #           #   #           #   #           #   #           #   #           #   #           #   #           #   #           
# #             # #             # #             # #             # #             # #             # #             # #             
#               #               #               #               #               #               #               #               
# # # # # # # #                 # # # # # # # #                 # # # # # # # #                 # # # # # # # #                 
#   #   #   #                   #   #   #   #                   #   #   #   #                   #   #   #   #                   
# #     # #                     # #     # #                     # #     # #                     # #     # #                     
#       #                       #       #                       #       #                       #       #                       
# # # #                         # # # #                         # # # #                         # # # #                         
#   #                           #   #                           #   #                           #   #                           
# #                             # #                             # #                             # #                             
#                               #                               #                               #                               
# # # # # # # # # # # # # # # #                                 # # # # # # # # # # # # # # # #                                 
#   #   #   #   #   #   #   #                                   #   #   #   #   #   #   #   #                                   
# #     # #     # #     # #                                     # #     # #     # #     # #                                     
#       #       #       #                                       #       #       #       #                                       
# # # #         # # # #                                         # # # #         # # # #                                         
#   #           #   #                                           #   #           #   #                                           
# #             # #                                             # #             # #                                             
#               #                                               #               #                                               
# # # # # # # #                                                 # # # # # # # #                                                 
#   #   #   #                                                   #   #   #   #                                                   
# #     # #                                                     # #     # #                                                     
#       #                                                       #       #                                                       
# # # #                                                         # # # #                                                         
#   #                                                           #   #                                                           
# #                                                             # #                                                             
#                                                               #                                                               
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #                                                                 
#   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #                                                                   
# #     # #     # #     # #     # #     # #     # #     # #                                                                     
#       #       #       #       #       #       #       #                                                                       
# # # #         # # # #         # # # #         # # # #                                                                         
#   #           #   #           #   #           #   #                                                                           
# #             # #             # #             # #                                                                             
#               #               #               #                                                                               
# # # # # # # #                 # # # # # # # #                                                                                 
#   #   #   #                   #   #   #   #                                                                                   
# #     # #                     # #     # #                                                                                     
#       #                       #       #                                                                                       
# # # #                         # # # #                                                                                         
#   #                           #   #                                                                                           
# #                             # #                                                                                             
#                               #                                                                                               
# # # # # # # # # # # # # # # #                                                                                                 
#   #   #   #   #   #   #   #                                                                                                   
# #     # #     # #     # #                                                                                                     
#       #       #       #                                                                                                       
# # # #         # # # #                                                                                                         
#   #           #   #                                                                                                           
# #             # #                                                                                                             
#               #                                                                                                               
# # # # # # # #                                                                                                                 
#   #   #   #                                                                                                                   
# #     # #                                                                                                                     
#       #                                                                                                                       
# # # #                                                                                                                         
#   #                                                                                                                           
# #                                                                                                                             
#                                                                                                                               


Create a new paste based on this one


Comments: