Computer Science, asked by kajal8740, 11 months ago

write a program to find 5% of 1000 in JavaScript​

Answers

Answered by lichodeashish07
0

Answer:

Code

Explanation:

sum the multiples of 3 and 5 under 1000. Sample Solution. HTML Code: <! JavaScript Code: var sum = 0; for (var x = 0; x < 1000; x++) { if (x % 3 === 0 || x % 5 === 0) { sum += x; } } console.log(sum); Flowchart: Live Demo: Improve this sample solution and post your code through Disqus.

Similar questions