int main() 
{
    int firstVector[3], secondVector[3], resultVector[3];   
    filling_vector(firstVector, 3);
    filling_vector(secondVector, 3);
    cross_product_vectors(resultVector, firstVector, secondVector);
    printf("[%d, %d, %d]", 
            resultVector[0], resultVector[1], resultVector[2]);

    return 0;
}
Exemplo n.º 2
0
Arquivo: main.c Projeto: iliankostov/C
int main() {
    int firstVector[3], secondVector[3], resultVector[3];
    printf("Input:\n");
    filling_vector(firstVector, 3);
    filling_vector(secondVector, 3);
    cross_product_vectors(resultVector, firstVector, secondVector);
    printf("Output:\n[%d, %d, %d]",
            resultVector[0], resultVector[1], resultVector[2]);

    return (EXIT_SUCCESS);
}