fork(1) download
  1. #include <math.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main(void) {
  6. printf("%f\n", remainder(5.0, 2.0));
  7. printf("%f\n", remainder(3.0, 2.0));
  8. return EXIT_SUCCESS;
  9. }
  10.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
1.000000
-1.000000