<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
for(var w=1; w<=8; w++){
for( var i=1; i<=20; i++){
document.write('*');
}document.write('<br/>');
}
for(var p=1; p<=10; p++){
for( var y=1; y<=10; y++){
document.write('*');
}
document.write('<br/>');
}
for(var d=1; d<=6; d++){
for(var a=1; a<=5; a++){
document.write('*');
}
document.write('<br/>')
}
document.write('<br/>')
document.write('<br/>')
document.write('<br/>')
document.write('<br/>')
for( var s=1; s<=10; s++){
for(var k=1; k<=s; k++){
document.write("*");
}
document.write('<br/>')
}
//
// for(var n=1; n<=100; n++){
// document.write(n+' ');
// }
var ki=0;
for(var we=1; we<=300; we++){
ki=ki+we;
}
document.write(ki+" ");
document.write('<br/>');
for( var sd=20; sd>=1; sd--){
for(var sr=1; sr<=sd; sr++){
document.write('*')
}
document.write('<br/>')
}
for(var sk=20; sk>=1; sk--){
for(var sn=1; sn<=sk; sn++){
document.write('*')
}
document.write('<br/>')
}
for(var sc=1; sc<=9; sc++){
for(var sv=1; sv<=sc; sv++){
document.write(sc+"*"+sv+"="+sc*sv+" ")
}
document.write('<br/>');
}
document.write(0377)
</script>
</body>
</html>
for循环结构小案例
最新推荐文章于 2021-12-22 09:16:08 发布