C Program to write 100 Logic.
How does this program work?
- This code helps to how to write 100 logic.
Here is the code
main (void)
{
int a, b, c, d, e, f, g, h, i;
printf("Enter 'A' Value:\n");
scanf("%d", &a);
printf("Enter 'B' Value:\n");
scanf("%d", &b);
printf("Enter 'C' Value:\n");
scanf("%d", &c);
printf("Enter 'D' Value:\n");
scanf("%d", &d);
printf("Enter 'E' Value:\n");
scanf("%d", &e);
f = a / b;
g = f + c;
h = g - d;
i = h * e;
printf ("Final Value: %d", i);
}