哇..我也是新人,学习学习.
//帮你改过了,自己看,这么粗心!!!!
#include<stdio.h>
main()
{float salory=500;
long profit;
printf("input profit\n");
scanf("%d",&profit);
if(profit<=1000) {salory+=salory;}
else if((profit>1000)&&(profit<=2000)) {salory+=profit*0.1;}
else if((profit<2000)&&(profit<=5000)) {salory+=profit*0.15;}
else if((profit<5000)&&(profit<=10000)) {salory+=profit*0.20;}
else if(profit>10000) {salory+=profit*0.25;}
printf("salary=%f\n",salory);
}