In math, if z = x + y / 2, then z will always change whenever we replace the value of x and y. Can we do that in programming
z = x + y / 2
z
x
y
int z(int x, int y) { return (x + y); } int x; int y; // This does ot work // int z{x + y}; cin >> x; cin >> y; cout << z(x, y);