Unit #2 Homework Problem (Solution) | |
|
|
Sol2hw1
|
|
· Add 5 to the value of k and store the result in m…………….m = k+5 ; |
|
· Cube i add j to this, and store the result in i………………...i = pow(i,3) + j ; |
|
· Square m, add n to it, and store the result in k……………….k = m*m + n ; |
|
· Divide the difference of a and b by the product of c and d, and store the result in y ……………………………………y = (a - b)/(c * d) ; |
|
|
|