DHTML_XML2_6

<!DOCTYPE html> <html> <head> <title>Unit 2 - Q6</title> <script type="text/javascript"> var no=5,fact=1,temp; document.write("No. to find factorial of = " + no + "<br>"); temp=no; for(;no>0;no--) fact=fact*no; document.write("Factorial of " + temp + " = " + fact); </script> </head> </html>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.