Hello fellow Computer Science student
Your code should look with something like this :
I'm on Windows and this may not be right, I haven't tried it.
Code:
#include <stdio.h>
#include <math.h>
int main()
{ int In,Out;
printf("When did the boy sign in ?");
scanf("%d",&In);
if (In>=13&&In<=16) {printf("The boy is paying $5");}
else (if(In>16&&In<=19) {printf("The boy is paying $8");}
return(1);
}
Something like this. You'll have to do another if for when the boy gets in at <13 or >19 and in that case do a printf saying the Gym is closed, I'm guessing.
Hope it helps, Dean.