Results 1 to 9 of 9
Thread: Javascript
Hybrid View
-
15th March 2010 20:35 #1
Javascript
1 100 , .
<SCRIPT TYPE="text/JavaScript">
for (i=2; i<=100; i++)
{
if (i%100==0)
{
document.write("<BR>")
};
pr=true;
for (j=2; j<i; j++)
{
if (i%j==0)
{
pr=false;
break
}
};
if (pr){document.write(i+"<BR>")};
}
</SCRIPT>
, if (i%100==0). . , i - . if (i%100==0) . Pls help me.
-
15th March 2010 21:00 #2
for (i=2; i<=100; i++)
{
if (i%100==0)
{
document.write("<BR>")
};
for (i=2; i<=1000; i++)
{
if (i%100==0)
{
document.write("--------------------<BR>")
};
-.
100 .Have no fear ike iz here.
CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color
-
15th March 2010 21:01 #3
() N , line break, . . % modulo, .. . 100 <BR>, i , 100, 200, 300, 400 .., 0.
100
.
-
15th March 2010 22:27 #4
-
15th March 2010 22:31 #5
-
15th March 2010 23:12 #6
, 1000 if (pr){document.write(i+"<BR>")}; <br>.
''? * *
- !
...
-
15th March 2010 23:32 #7
-
15th March 2010 23:40 #8
.
:
if (i%100==0)
{
document.write("<BR>")
};
-
15th March 2010 23:56 #9




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in