<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>if...else</title><script type="text/JavaScript">var czz,vzz=0;//czz变量存放不同面值,vzz总计for(czz=1;czz<=10;czz++){ vzz= vzz + czz;}for(czz=2;czz<=10;czz++){ vzz=vzz+czz;}for(czz=3;czz<=10;czz++){ vzz=vzz+czz;}for(czz=4;czz<=10;czz++){ vzz=vzz+czz;}for(czz=5;czz<=10;czz++){ vzz=vzz+czz;}for(czz=6;czz<=10;czz++){ vzz=vzz+czz;}for(czz=7;czz<=10;czz++){ vzz=vzz+czz;}for(czz=8;czz<=10;czz++){ vzz=vzz+czz;}for(czz=9;czz<=10;czz++){ vzz=vzz+czz;}for(czz=10;czz<=10;czz++){ vzz=vzz+czz} document.write("vzz合计:"+vzz+"<br/>");</script></head><body></body></html>
添加回答
举报
0/150
提交
取消