SyntaxFix
Write A Post
Hire A Developer
Questions
Harder Way (learning purpose) :
var number = 150 var percent= 10 var result = 0 for (var index = 0; index < number; index++) { const calculate = index / number * 100 if (calculate == percent) result += index } return result