Trouble with Lesson 126

Trouble with Lesson 126
0

#1

So here is what I’ve been working with, I was able to get the first two but for a week I have been working on trying to solve for C and what I have below is the closest I could get C to 46.

A = 25, B =36, C=46 (Or at least its supposed to equal that. I’ve tried so many answers and I just can’t get over this hurdle. Please any help would be appreciated.)

var a = 5;
var b = 12;
var c = 4.6;

// Only modify code below this line

a *= a / 1;
b *= 36 / b;
c *= c / .46;


#3

There is nothing to solve in this exercise - it only shows the equivalence of these two assignment statements

// standalone multiplication and assignment operators
// suppose a is 5
// RHS a * 5 is evaluated giving 25
// the result is assigned to LHS a turning a to 25
a = a * 5

is the same as

// shorthand combined self-multiplication and assignment operator
// suppose a is 5
// RHS 5 is multiplied by LHS a giving 25
// the result is assigned to LHS a turning a to 25
a *= 5

You have to rewrite the expressions for b and c the same way changing the standalone assignments to combined assignments


#4

Thank you for explaining this