#include <unistd.h>

void func(void)
{
    int i, j, k;
    char digits[3];

    i = 0;
    while (i < 10)
    {
        j = 0;
        while (j < 10)
        {
            k = 0;
            while (k < 10)
            {
                digits[0] = i + 48;
                digits[1] = j + 48;
                digits[2] = k + 48;
                if (i != j && i != k && j != k){
                    write(1, digits, 3);
                    write(1, "\n", 1);
                } 
                k++;           

            }
            j++;
        }
        i++;
    }    
}
int main() {
    func();
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: