Print the number 0 using write()

C
#include <stdio.h>

int main(void) {
    int n = 123;

    putchar((n % 10) + '0');
    n /= 10;
    putchar((n % 10) + '0');
    n /= 10;
    putchar((n % 10) + '0');

    return 0;
}
Source

Also in C: