In this tutorial, you will learn about, How to write a JAVA script code to print the series of numbers. eg. 1,2,3,4,5,5,6,7,8,9,10.
To write a JAVA script code to print the series of numbers:
we first write a javascript code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<HTML> <HEAD> <script language = “language”> Function print () { Var I =0 ; For (i=0;i=10;i+r) { Document.write(I + “<br>”) } } </script> </Head> <Body> <Form> <Input Type “button” ondisk =”print ()” Name=”click”> </FORM> </Body> </HTML> |
Comment below if you have queries related to the above topic, How to write a JAVA script code to print the series of numbers.