I am fairly new to programming and came upon a following problem: I am getting an error C2124, which means that I am using 0 for division However, as you can see, the number I am using is not zero but a really small number. When I change division numbers to 5/2, I get 2 as a result, as if I am using int variable for x. What am I doing wrong?
#include<iostream>
using namespace std;
int main()
{
    double x = 0.0;
    x = 1/((6/45)*(5/44)*(4/43)*(3/42)*(2/41)*(1/40));
    cout << "The number is : " << x << endl;
    system("pause");
    return 0;
}
