Identify the code used to generate a diagonal matrix, which has 0s and 1s.
Standard input is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!