diff --git a/arthimetic-operators.js b/arthimetic-operators.js index 3ff7d54..546b5f3 100644 --- a/arthimetic-operators.js +++ b/arthimetic-operators.js @@ -18,7 +18,13 @@ Task 1: 7. Use console.log() to print the value of variable e to the console. (it should result 105.667) *******************************************************************************/ // TODO: ADD YOUR CODE BELOW - +let a, b, c, d, e ; +a = 4 + 6; +b= 10 * 5; +c= 17%3; +d= b-a; +e= a+b+c+d; +console.log(e); /******************************************************************************* Task 2: 1. Subtract two numbers and log the result to the console. @@ -28,3 +34,24 @@ Task 1: 5. Divide two numbers and round the result to the nearest integer before logging it to the console. *******************************************************************************/ // TODO: ADD YOUR CODE BELOW +console.log(5-3); + +console.log(1*3*5); + +let volume = 3*5*7; + +console.log(volume); + + +let price = 9.99; + +let discount = 0.20; + +let finalPrice = price - (price * discount); + +console.log(finalPrice); + +console.log(Math.round(finalPrice)); + + + diff --git a/index.html b/index.html index 9eb7d90..7adacdb 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,8 @@