Home Top Ad

Responsive Ads Here

Write a program to Factorial Number Using Javascript

Share:

 <!DOCTYPE html>

<html>

<head>

<title>factorial</title>

<script type="text/javascript">

var a=prompt("Enter value");

var b=a;

var c=a;

for (var i = 2; i < a; i++)

{

c=c-1;

b=b*c

}

alert(b)

</script>

</head>

</html>

Post a Comment

No comments

Welcome to saveracom.blogspot.com

Data Science using Spreadsheet Software Assignment 3

Printing Workbooks select the cells you want to print and then set that area as the print area   Steps to set a print area: Select the cells...