Computer Science, asked by gauravjain6111981, 1 day ago

Write the JavaScript program to find the sum of three numbers using prompt statement. ​

Answers

Answered by moulishriram9155
0

Answer:

The parseInt () converts the numeric string value to an integer value. The for loop is used to find the sum of natural numbers up to the number provided by the user. The value of sum is 0 initially. Then, a for loop is used to iterate from i = 1 to 100. In each iteration, i is added to sum and the value of i is increased by 1.

Explanation:

Similar questions