I am writing this program for some extra credit, but it seems entirely too easy, and I have no way of checking it because my compiler doesn't like getchar.
The program is just supposed to add 4 to an integer if a float is greater than 5.4.
Also, I am supposed to write another program for extra credit but I don't understand what it means exactly. It says, "Write the code to print either zero or not zero based on the integer variable num."
printf("Please enter a number: ");
if (amount > 5.4)
num = num + 4;
These programs are only worth 1 point each (out of 1000 for the whole course) so I am not going to greatly alter my grade by doing these, so I figured it wouldn't matter if I asked for some help (policy of not doing people's HW).