
Originally Posted by
Salem
Well it seems you know most of what needs to be done, give it a go.
Perhaps this will be useful.
modf(3) - Linux man page
Given 12.3, it will allow you to extract 12.0 and 0.3 as separate floating point variables.
Code:
void medTest(int age, int pulse){
if ((35>age&&age>0) && (pulse>40&&pulse<120))
{
printf("Test passed .");
}
else if((55>=age&&age>=35) && (40<pulse&&pulse<110))
{
printf("Test Passed .");
}
else if ((age>55) && (40<pulse&&pulse<100))
{
printf("Test Passed .");
}
else
{
printf("Test Failed.");
}
}
i guess its ok now
,
about the amPM i think i wasnt so clear.. , i need to make that the higher timer will show by 59. so i need to "mine time * 100" then %100 result should be no more then 59 .
i dont understood how to do that into the function :\ thats mine problem .