/* Arithmetic.c: arithmetic expresions */ /* */ /* author: Rainer Doemer */ /* */ /* modifications: */ /* 10/06/04 RD initial version */ #include /* main function */ int main(void) { /* variable definitions */ int a, b, c, d, n; double p, q, r, x; /* input section */ printf("Please enter the value for real x: "); scanf("%lf", &x); printf("Please enter the value for integer a: "); scanf("%d", &a); printf("Please enter the value for integer b: "); scanf("%d", &b); printf("Please enter the value for integer c: "); scanf("%d", &c); printf("Please enter the value for integer d: "); scanf("%d", &d); printf("Please enter the value for integer n: "); scanf("%d", &n); /* computation section */ p = 2.0*x*x - 3.0*x + 5.0; q = ((double)(a + b)) / ((double)(c + d)); r = (double)((1<