110k views
5 votes
Which of the following are not valid assignment statements.a. total = 9;b. 72 = amount;c. profit = 129d. letter = 'W';

User Timbadu
by
5.7k points

1 Answer

1 vote

Answer:

b. 72 = amount; is not valid

Explanation:

The variable that receives the value(s) must always be on the left side of the equal sign.

It is a convention that makes the sentence more readable and easier to understand. For example, option "a" (total = 9) would be read as: "take variable called 'total' and make its value equal to 9".

User Harningt
by
5.3k points