Custom Search

genap ganjil

Bilangan Genap :
<script type="text/javascript">

for ( i = 10; i <=50; i++)
{
if (i % 2 == 0)
{
document.write(i+(","))
}
}
</script>

Bilangan Ganjil :
<script type="text/javascript">

for ( i = 10; i <= 50; i++)
{
if (i % 2 == 1)
{
document.write(i+(","))
}
}
</script>