Difference in output

for(int line = 1;line<=N;line++){

	//print spaces 
	int nsp = N - line;
	for(int j = 1;j<= nsp;j++){
		cout<<" ";
	}
	//print numbers 
	int binoCoeff = 1;
	for(int i =1 ; i<=line;i++){
		cout<<binoCoeff<<" ";
		binoCoeff =binoCoeff *(line-i)/i;  // longer form 
		cout<<"##"<<binoCoeff;
	}
	cout<<endl;
}

// Now if I write same code but use
//binoCoeff *=(line-i)/i; in the above code instead of
//binoCoeff =binoCoeff *(line-i)/i;
// I get different output

Kindly explain why . I tried but am stuck behind this logic

Hey @achin1tya take a look at this example to see how calculation takes place in both ways.
int a=2,b=3,c=5;
if(method 1)
a*=b/c;
cout<<a;// the answer comes out to be zero because because first the division takes place and then multiplication
if(method 2)
a=a*b/c;
cout<<a; //here output comes to be 1 instead of 0, because bodmas is followed as we go from left to right

Try this example in your case . Hope I have cleared your doubt.