向各位请教!此程序到底哪里错了??
//程序:AVERAGE.CPP//功能:求数、理、化三科平均成绩的总评,演示if语句嵌套的缩进形式。
#include<iostream.h>
void main()
{
int math,phys,chem;
int average;
float scholarship;
cout<<"Enter scores of math.,phys.and chem.:";
cin>>math>>phys>>chem;
average=(math+phys+chem)/3.0+0.5;
if(average>=90){
cout<<"Excellt.\n";
scholarship=120.00;
}else if(average>=80){
cout<<"Good.\n";
scholarship=85.00;
}else if(average>=70){
cout<<"Average.\n";
scholarship=55.00;
}else if(average>=60){
cout<<"Pass.\n";
scholarship=45.50;
}else{
cout<<"Fail.\n";
scholarship=0.00;
}
cout<<"Your scholarship is"<<sholarship<<".\n";
}
这个程序哪里出错啦。。。不能编译出来 找了好久没发现啊