So... I'm feeling really retarded that it's giving me so much trouble.
I'm working my way through a book and I had an idea maybe I could figure
something out on my own. It's a simple calculator I want it to allow you to input:
hourly wage, hours per week, and tax(for state).
So my problem. I'm using gets(); to collect char and atoi to convert to float and
somewhere along the way when multiplying the floats by each other the product
is wrong for the first answer and won't show for the second.
printf("Hours worked weekly:");
printf("Pay per hour:");
printf("State tax decimal(or what you have taken out.)\n");
monthly = atoi(hours)*p*4;
printf("Your monthly pay is %.4f before taxes.\n",monthly);
printf("Your monthly pay after taxes is %.4f\n",monthlyt);
printf("Press the \"Enter\" key to exit the program.");