#include<stdio.h> void main() { char name[5]; float basic,daper,bonper,loandet,salary; printf("name"); scanf("%s",name);
printf("basic"); scanf("%.2f",basic);
printf("daper"); scanf("%.2f",daper);
printf("bonper"); scanf("%.2f",bonper);
printf("loandet"); scanf("%.2f",loandet);
salary=basic+basic*daper/100+bonper*basic/100-loandet;
printf("Name\tBasic\tSalsry"); printf("\n%s\t%.2f\t%.2f\n",name,basic,salary); } 执行的时候始终有错,到第二个的时候就不能继续输入数字了