[求助]这个程序,谁能帮我看下错误!!~
#define basic 2500#define daper 55
#define bonper 33.33
#define loandet 250.00
#include<stdio.h>
#include<string.h>
int main()
{
int i,m;
float salary;
char name[20];
gets(name);
m=strlen(name);
printf("Name Basic Salary\n");
for(i=0;i<m;i++)
printf("%c",name[i]);
for(i=0;i<(9-m);i++)
printf(" ");
printf("%-5d",basic);
for(i=0;i<5;i++)
printf(" ");
salary=basic+basic*daper/100.0+bonper*basic/100.0-loandet;
printf("%-9.2f\n",salary);
return 0;
}
可我运行时却什么都没有~~请教!!!~