fork download
  1. #include <stdio.h>
  2.  
  3. float difference(float lt, float lt2)
  4. {
  5. float timedifference;
  6. timedifference = (lt - lt2) / 15;
  7. return timedifference;
  8. }
  9.  
  10. int main(void)
  11. {
  12. float lt = 0;
  13. float lt2 = 139.7;
  14.  
  15. printf("%2f", difference(lt, lt2));
  16. return 0;
  17. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
-9.313334