Numeric Programs
The following programs (or tutorials) cover different topics related to numeric problems and their solutions using JavaScript.
- add two numbers
- average of numbers in array
- average of two numbers
- check if a number is Armstrong number
- check if a number is even or odd
- check if a number is factor of another number
- check if a number is positive
- check if a number is negative
- check if a number is zero
- compare two numbers
- factorial using for loop
- factorial using recursion
- find largest of three numbers
- find square root
- find smallest of three numbers
- generate random number
- reverse a number
- sum of first n natural numbers
- sum of squares of first n natural numbers
- swap two variables