<!doctype html>
<meat charset= "Utf-8" >
<title>javascript Cycle </title>
<body>
<script type= "Text/javascript" >
/*1~100 between Odd and */
var sum=0;
for (Var i=1;1<=100;i++) {if (i%2==1) {sum+=1;}}
document.write (' 1~100 ' between the odd and: ' +sum+ '
/* 99 Multiplication Table */
document.write ('
document.write (' <table border= ' 1 ' cellsapcing= ' 0 ' cellpadding= ' 0 ' bgcolor= ' #dddddd ' > ')
for (Var i=1;i<=9;i++) {
document.write (' <tr> ');
for (Var j=1;j<=i;j++) {document.write (' <td> ' +i+ ' x ' +j+ ' = ' + (i*j) ' </td> ');}
document.write (' </tr> ');}
document.write (' </table> ')
document.write (
/* hundred chicken buy hundred money three for*/
for (Var i=0;i<=20;i++) {
for (Var j=0;j<=33;j++) {
for (Var z=0;z<=100;z++) {
if (x+y+z=100&&5*x+3*y+z/3=100) {
document.write (' Rooster: ' +i+ ' only ' + ' hen: ' +j+ ' only ' + ' chick: ' +z+ ' only ');}
}}}
/* hundred chicken buy hundred money two for*/
for (Var i=0;i<=20;i++) {
for (Var j=0;j<=33;j++) {
Z=100-i-j;
if (z%3=0&&5*x+3*y+z/3=100) {
document.write (' Rooster: ' +i+ ' only ' + ' hen: ' +j+ ' only ' + ' chick: ' +z+ ' only ');}
}}
</script>
</body>
July 24, 2016 JavaScript Learning code review