主题:有什么错吗
#include<stdio.h>
void main()
{
float basic,da,hra,salary;
printf("输入基本工资:");
scanf("%f",&basic);
da=basic*40/100;
hra=basic*25/100;
salary=basic+da+hra;
printf("\n该员工的工资细目为");
printf("\n基本工资为:%7.2f",basic);
printf("\n物价津贴为:%7.2f",da);
printf("\n房屋津贴为:%7.2f",hra);
printf("\n\n实际工资为:%7.2f",salary);
}
怎么总报告错误
void main()
{
float basic,da,hra,salary;
printf("输入基本工资:");
scanf("%f",&basic);
da=basic*40/100;
hra=basic*25/100;
salary=basic+da+hra;
printf("\n该员工的工资细目为");
printf("\n基本工资为:%7.2f",basic);
printf("\n物价津贴为:%7.2f",da);
printf("\n房屋津贴为:%7.2f",hra);
printf("\n\n实际工资为:%7.2f",salary);
}
怎么总报告错误