Saturday, 17 August 2013

A JavaScript Program That Generate Factorials..

document.write(”Table of Factorials”);
for(i = 1, fact = 1; i < 10; i++, fact *= i) {
document.write(i + "! = " + fact);
document.write("”);
}

No comments:

Post a Comment