What's new

C & C++ C language patulong po baguhan lang po ako mga master

m a e 0 9

Journeyman

Vector Cross Products​

by CodeChum Admin
After doing the scalar product of vectors, we can now move to cross products. Taking a cross product of vectors is a bit trickier than getting the scalar product and so a hint was provided. Using the struct vector with components i,j, and k,create a program that accepts six integer inputs and computes for the cross product of two vectors.

Input
-10^7 <= i,j,k <= 10^7 Six int inputs, 3 per line with each input separated by a space
1·2·3
3·2·1

Output
Three int outputs each separated by a space
-4·-8·-4
 

Similar threads

Back
Top