另一个程序问题,编出来出现非致命错误了,求大哥大姐帮忙
#include "stdio.h"int main (void)
{
float sales,salary=0;
printf ("Enter sales in dollars (-1 to end): ");
scanf ("%f",sales);
while ( sales != -1){
salary = (float)sales * 9/100 + i;
printf ("salary is : %.2f\n",salary);
printf ("Enter sales in dollars (-1 to end): ");
scanf ("%f",sales);
}
return 0;
}
到底怎么改啊,救命