Write a statement to subtract tax from gross_pay and assign the result to net_pay. (The variables have already been declared and gross_pay and tax have already been initialized.)

LANGUAGE: C++

CHALLENGE:

Write a statement to subtract tax from gross_pay and assign the result to net_pay. (The variables have already been declared and gross_pay and tax have already been initialized.)

SOLUTION:



net_pay = gross_pay - tax;