User:Yamtari/Sandbox

$$ND = \left( 50 \cdot CM \cdot \frac{X}{Y} \cdot \frac{(RD+RB)}{CD}-ADT\right) \cdot \left(1-\frac{ADR+RM}{100}\right)$$

int main (int argc, char **argv) { 	float RD = 0, RB = 0, X = 0, Y = 0, CM = 0, CD = 0, ADT = 0, ADR = 0, RM = 0; printf("Enter parameter in format: >RD RB X Y CM CD ADT ADR RM\n"); scanf("%f %f %f %f %f %f %f %f %f", &RD, &RB, &X, &Y, &CM, &CD, &ADT, &ADR, &RM); printf("Rolled: %f = (50 * %f * (%f/%f) * ((%f + %f)/%f)-%f)*(1-((%f+%f)/100))\n", (((50.0f * CM * (X/Y) * ((RD + RB))/(CD)))-ADT)*(1.0f-((ADR+RM)/100.0f)), CM, X, Y, RD, RB, CD, ADT, ADR, RM); return 0; }
 * 1) include 