okay this is what i have:
#include <stdio.h>
main()
{
float clock_num; /*Employee clock number*/
float hrs_worked;
float hrly_wage;
float gross_pay;
printf("Enter the clock number:");
scanf("%f",&clock_num);
printf("Enter your hourly wage:");
scanf("%f",&hrly_wage);
printf("Enter number of hours worked:");
scanf("%f",&hrs_worked);
gross_pay=hrs_worked*hrly_wage;
printf("Your gross pay is $%i\n", gross_pay);
}
but he wants it like this:
-------------------------------------------
clock # wage hours gross
-------------------------------------------
384243 10.60 51.0 540.60
(FYI: the clock number is just random, it doesnt have anythign to do with the calculation)
i just can't seem to get the cursor to do what i want it to do. please help. thanks!