Answered>Order 157

I don’t thoroughly understand how to do operations, this is a question that was done for last week, but I had gotten wrong. My teacher doesn’t give answers, so I’m just stumped. Can I get someone to explain how this is done?

The question was:

“Write the assignment statements that perform the following operations with the variables a, b, and c:

1. adds 2 to a and assigns the result to b

2. multiplies b times 4 and assigns the result to a

3. divides a by 3.14 and assigns the result to b

4. subtracts 8 from b and assigns the result to a”

 
"Not answered?"
Get the Answer