//produit vectoriel de deux vecteurs #include using namespace std; int main() { const int SIZE = 3; double a[SIZE]; double b[SIZE]; cout << "Entrez le premier vecteur :" << endl; cin >> a[0] >> a[1] >> a[2]; cout << "Entrez le deuxiem vecteur :" << endl; cin >> b[0] >> b[1] >> b[2]; double c[SIZE]; c[0] = a[1]*b[2] - a[2]*b[1]; c[1] = a[2]*b[0] - a[0]*b[2]; c[2] = a[0]*b[1] - a[1]*b[0]; cout << "Le produit vectoriel de a et b est " << c[0] << " " << c[1] << " " << c[2] << endl; return 0; }