calc , problem 3 , ||
Thu Apr 08 2021 14:37:39 GMT+0000 (Coordinated Universal Time)
Saved by
@latifa_amaireh
function sumAndMultiply(a, b, c) {
let summation = sum(sum(a,b)[0],c)[0];
let multiplication= multiply(multiply(a,b)[0],c)[0];
return [summation,multiplication, `${a} and ${b} and ${c} sum to ${summation}.`, `The product of ${a} and ${b} and ${c} is ${multiplication}.`]
}
testSumAndMultiply(4,7,5);
content_copyCOPY
Comments