Professional Documents
Culture Documents
Tutorial3 Arithmetic Expression STD
Tutorial3 Arithmetic Expression STD
Tutorial3
1. Convert the Algebra expression to arithmetic expression in programming language :
1.
2.
3.
4.
5.
c += 7
c-=3
c*=4
c/=2
c^=2
i) 3 / 2 + 5.5
ii) 15.6 / 2 + 5
iii) 4 + 5 / 2.0
iv) 4 * 3 + 7 / 5 - 25.5
v) 34 % 5
vi) 4%6
ZO/Sept2019 CSC126
3*7–6+2*5/4+6