
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int sin = 123456789; 
    int sin_array[9]; 
    int digit; 
    for (int i = 0; i < 9; i ++) {
        digit = sin % (10^(1+i));
        printf("digit: %d \n", digit);
        sin -= digit * 10^i; 
        sin = sin / 10; 
        sin_array[8 - i] = digit;
    }
}
should take each digit in sin and place it in sin_array at the corresponding index