请看一下,这个程序为什么有问题···(主要是循环不了··)
#include <stdio.h>struct SCORE
{
char math;
int gpa1;
char chinese;
int gpa2;
char english;
int gpa3;
char c;
int gpa4;
char s;
int gpa5;
char jd;
int gpa6;
char physical;
int gpa7;
int score;
}first;
main(){
int i;
float e;
printf("This is the first score in your college\n ");
printf("please fill in carefully!\n");
for(i=0;i<7;i++){
if(i=0){
printf("%s",&first.math);
scanf("%.1f",&first.gpa1);}
else if(i==1){
printf("%s",&first.chinese);
scanf("%.1f",&first.gpa2);}
else if(i==2){
printf("%s",&first.english);
scanf("%.1f",&first.gpa3);}
else if(i==3){
printf("%s",&first.c);
scanf("%.1f",&first.gpa4);}
else if(i==4){
printf("%s",first.s);
scanf("%.1f",&first.gpa5);}
else if(i==5){
printf("%s",&first.jd);
scanf("%.1f",&first.gpa6);}
else if(i==6){
printf("%s",&first.physical);
scanf("%.1f",&first.gpa7);}
else if(i==7){
e=0;
e=(first.gpa1+first.gpa2+first.gpa3+first.gpa4+first.gpa5+first.gpa6+first.gpa7)/7.0;
printf("&.1f",e);}
}
return 0;
}