Write a statement using a compound assignment operator to cut the value of pay in half (pay is an integer variable that has already been declared and initialized ).

Write a statement using a compound assignment operator to cut the value of pay in half (pay is an integer variable that has already been declared and initialized ).

LANGUAGE: C++

CHALLENGE:

Write a statement using a compound assignment operator to cut the value of pay in half (pay is an integer variable that has already been declared and initialized ).

SOLUTION:



pay = pay / 2;

Add comment