c语言里的汽油与汽车所走的路程问题 #include <stdio.h>#include <stdlib.h>int main(){ int miles,counter; float gallons; float average; counter=0; while(gallons!=-1){ printf("Enter gallons,(-1 to end):");...
为什么我用for循环不能得出结果??? #include <stdio.h>#include <stdlib.h>int main(){ int total,grade,counter,average; total=0; printf("enter grade:"); for(counter=1;counter<=10;counter++) { scanf("%d...