Binary digits

fn main() {
    let a = [5, 50, 9000];
    for i in a { printf("%b\n", i);
}

Output:

101
110010
10001100101000

Attribution: This is a community solution for the Rosetta Code task Binary digits in Zen C.

This article uses material from the Rosetta Code article Binary digits, which is released under the GNU Free Documentation License 1.3. A list of the original authors can be found in the page history.