what doe this statement do..........sales*=X++;
and can you write a basic program to show outcome?
It means sales = sales * X, and then increase X by 1.
int sales = 10;
int X = 10;
cout << "Sales is now 10 times 10 = " << sales <<endl;
cout << "X is now incremented and is now " << X;