Introduction To Programming YOUR CODE STARTS AFTER THIS LINE: to complete this lab.results1results2results3results4results5results6results7results8results9results10results1 = (25 * 10) / 2; 25 * 10 / 2 --> 125 3 + 4 * 5 --> 23 3 + 4 * 5 --> 351 + 2 + 3 - 4 + 5 --> 71 + 2 + 3 - 4 + 5 --> -3 20 * 10 / 2 --> 100 2 / 3 * 3 * 3 --> 62 / 3 * 3 * 3 --> 0.6666666666666672 / 3 * 3 * 3 --> 0.07407407407407412 * 2 - 2 --> 0 document.write(); to output the results. Add the calculation and the parentheses to the output. Here's how to do the first one:
document.write("(25 * 10) / 2 --> " + results1 + "<br />");Without the parentheses that make it work.
25 * 10 / 2 --> 125
3 + 4 * 5 --> 23
3 + 4 * 5 --> 35
1 + 2 + 3 - 4 + 5 --> 7
1 + 2 + 3 - 4 + 5 --> -3
20 * 10 / 2 --> 100
2 / 3 * 3 * 3 --> 6
2 / 3 * 3 * 3 --> 0.6666666666666666
2 / 3 * 3 * 3 --> 0.07407407407407407
2 * 2 - 2 --> 0