问题遇到的现象和发生背景
不管怎么样输出的工资都是0.00000000,,很奇怪
#include<stdio.h>
int main()
{
const double RATE =8.25;
const int STANDARD =40;
double pay = 0.0;
int hours=0;
printf("请输入工作的小时数:");
scanf("%d", &hours);
printf("\n");
if (hours>STANDARD)
pay = STANDARD * RATE +(hours-STANDARD)*(RATE*1.5);
else
pay = hours* RATE;
printf("应付工资:%f\n", &pay);
}
```