CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Assigning results:

Assignment

the result of an expression can be assigned to a variable using the = operator

<variable> = <expression>;
this means: take the result of the expression (in the right side) and store it as the new value for the variable (in the left side).

Multiple assignments are possible:

k=m=3;