Browsing Archive June, 2017
0
Find Factorial Value from Input Number
0

Source: var n; function calculatefactorial(n){ if(n==0){ return 1; }else{ return n*calculatefactorial(n-1); } } var number=prompt("Enter a ...

0
Check Prime Number From Start to End Number
0

Source: function isPrime(num){ var n=Math.sqrt(num); for(i=2;i<=n;i++){ if(num%i==0) return false; } return true; } function ...

0
Check Prime Number
0

Source: function isPrime(num){ var n=Math.sqrt(num); for(i=2;i<=n;i++){ if(num%i==0) return false; } return true; } var number=prompt("Enter for ...

Register New Account
Reset Password