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?

#include<stdio.h>
int main(void){
int name, hours, rate, overtime;
hours=o; count=count+1

printf("Enter employee name\n Enter-1 to end");
scanf("%s"& name);
printf("Enter hours worked\nEnter rate\n Enter -1 toend");
scanf("%d,%d,"& hours, rate);

while(hours<=40){
salary=hours*rate
count=count+1
if(hours>40)
else
salary=(flaot)
this is what I am working with.