为什么这些java老是不对???
<html> <head> <title>Assignment 4 - Basketball Program</title><head>
<script language="javascript" src="http://www.student.cs.uwaterloo.ca/~cs100/cs100.js">
</script>
</head><script language="javascript">
<body> <script language="javascript">
var date,games,awayTeamScore,awayTeam,awayTeam1,awayTeamScore1,homeTeam,homeTeamScore,homeTeam1,homeTeamScore1
var i=0
date = inputString ("Enter the date")
for (;;)
{
games = inputNum ("Enter the number of games played",0)
if(i==games) break
homeTeam = inputString ("Enter the name of the home team")
homeTeamScore = inputNum ("Enter the score of the home team")
awayTeam = inputString ("Enter the name of the away team")
awayTeamScore = inputNum ("Enter the score of the away team")
i=i+1
}
outputLine("<h1>Basketball Results for "+date+"</h1>)
outputLine("")
outputLine (homeTeam+" - <i>"+homeTeamScore+"</i>")
outputLine (awayTeam+" - <i>"+awayTeamScore+"</i>")
outputLine ("")
outputLine (awayTeam1+" - <i>"+awayTeamScore1+"</i>")
outputLine (homeTeam1+" - <i>"+homeTeamScore1+"</i>")
outputLine("")
outputLine("")
outputLine("Highest margin of victory: "+"(")
</script> <body> </html>
已经要崩溃了,怎么也做不出
这个问题是 先让我1)输入日期,然后输入 2)今天打了几场球?
3)比如输入了3场,就会让我输入3次球场的对手和自己的名字和分数,输完3次后自动end loop,
最后显示在屏幕的是:
4)日期, 出现 每个的5)队名 和 6)分数。
在最后 出现 7)“最大差距的分数是 ”(也就是说Max-min得出的结果)
请大家帮帮忙!~作了一天还是不行