Ok, so i was working on a code that would calauate the penalties for intoxicated driving having 3-90 days of peanlity for # of peanlites commited and the fine from $200-500. But i wanted to ask why is my code not compliing below? Any explanations on what i got wrong? Because an error wont show up...
CodePudding user response:
Neither the first if nor the second if conditions are evaluated to logical true
if (al <= 0.05){
printf("PASS\n");
}else
if ((al > 0.05) && (al < 0.08))
for the passed arguments. As a result inner if statements do not get the control.
So the program outputs nothing.
CodePudding user response:
in process_breathalyzer_results(0.08, 1); change values for the ones that prints something to console. example process_breathalyzer_results(0.06, 2); .
