第3个回答 2010-10-16
pascal:
program a;
begin
write('2,9,16,23,30,37,44,51,58,65,72,79,86,93,100');
readln;
end.
批处理:
@echo off
echo 2,9,16,23,30,37,44,51,58,65,72,79,86,93,100
pause>nul
exit
第4个回答 2010-10-16
复制到记事本改成.html格式
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script>
function x(){
for(var i=1;i<=100;i++){
if(i%7==2){
document.myForm.all.value=document.myForm.all.value+" "+i;
}
}
}
</script>
</head>
<body>
<form method="post" name="myForm">
<table align="center">
<tr>
<td>
<input type="text" id="all"value="" />
<input type="button" value="显示" onclick="x()"/>
</td>
</tr>
</table>
</form>
</body>
</html>