Why do I keep getting 0.00
I am trying to find out a person gross pay.

printf("Enter number hours worked, Enter-1to end");
scanf("%d", &hours);
printf("Enter rate of pay, Enter -1 to end");
scanf(%d", &rate);
grossPay=(float)hours * rate;
printf("grossPay is %.2f", grossPay);

return 0;