filmov
tv
4. Summations - JavaScript Coding Challenge

Показать описание
This is a JavaScript solution for sololearn community coding challenges - Summations
Problem description:
Summations Calculator
Create a program that takes 3 inputs, a lower bound, an upper bound and the expression. Calculate the sum of that range based on the given expression and output the result.
For Example:
Input: 2 4 *2
Output: 18 (2*2 + 3*2 + 4*2)
Input: 1 5 %2
Output: 3 (1%2 + 2%2 + 3%2 + 4%2 + 5%2)
You can find the javascript code here:
Click here to subscribe to the channel:
#codeTech #javascriptChallengesOnCodeTech #javascript #javascriptforbeginners
Problem description:
Summations Calculator
Create a program that takes 3 inputs, a lower bound, an upper bound and the expression. Calculate the sum of that range based on the given expression and output the result.
For Example:
Input: 2 4 *2
Output: 18 (2*2 + 3*2 + 4*2)
Input: 1 5 %2
Output: 3 (1%2 + 2%2 + 3%2 + 4%2 + 5%2)
You can find the javascript code here:
Click here to subscribe to the channel:
#codeTech #javascriptChallengesOnCodeTech #javascript #javascriptforbeginners