2(ii)
Evaluate the given expression when x = 4.
x *= --x + x-- + x;
Show SolutionHide Solution↓
x *= --x + x-- + x
x = x * (--x + x-- + x)
x = 4 * (--x + x-- + x)
x = 4 * (3 + x-- + x)
x = 4 * (3 + 3 + x)
x = 4 * (3 + 3 + 2)
x = 4 * 8
x = 32
ICSE Class 10 Computer Applications PYQ · 2025 Improvement · Section A
Evaluate the given expression when x = 4.
x *= --x + x-- + x;
x *= --x + x-- + x
x = x * (--x + x-- + x)
x = 4 * (--x + x-- + x)
x = 4 * (3 + x-- + x)
x = 4 * (3 + 3 + x)
x = 4 * (3 + 3 + 2)
x = 4 * 8
x = 32