Im working on my first code. Im freaking out. Im not sure if I need a counter. I am asking user to any any amout of worked hours. I need to out put pay. Based on what the user enter. Overtime=time&half. I was trying to do stepdown apporach wiih pseudocde. This is what I have pieced together. Am i declaring the right variables, what about my counter?
int name, hours, rate, overtime;
printf("Enter employee name\n Enter-1 to end");
printf("Enter hours worked\nEnter rate\n Enter -1 toend");
scanf("%d,%d,"& hours, rate);
this is what I am working with.