Ad

Chapter - 2: C Instructions

Convert the following equations into corresponding C statements.


Ad
D
Sections
1
Exercises

(a) z = ((x + 3) X^3) / ((y - 4)(y + 5))

ans: (x + 3) * x * x * x / ((y - 4) * (y + 5));

 

(b) R = (2v + 6.22(c + d)) / (g + v)

ans: 2 * v + 6.22 * (c + d) / (g + v);

 

(c) A = (7.7b (xy + a) / c - 0.8 + 2b) / ((x + a)(1 / y))

ans: 7.7 * b (x * y + a) / c - 0.8 + 2 * b / ((x + a)*(1 / y));

 

(d) X = (12x^3)/4x + (8x^2)/4x + (x/8x) + 8/8x;

ans: (12 * x * x * x ) / (4 * x) + (8 * x * x) / (4 * x) + (x / (8 * x)) + 8 / (8 * x);

Ad

© 2024 Garbage Valuegarbage value logo