#include <stdio.h>
int main()
{
float beginning=200; //基本薪資
float salesD; //當周銷售
float salary; //實際可領(lǐng)
float per=0.09; //%數(shù)
printf("Enter sales in dollars (-1 to end):");
scanf("%f", &salesD);
while(salesD !=-1){
salary=beginning+salesD*per;
printf("Salary is:%.2f\n",salary);
printf("Enter account number (-1 to end):");
scanf("%f", &salesD);
}
system("pause");
return 0;
}