fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. double ad, bd;
  5. int ai, bi;
  6. scanf("%lf %lf %d %d", &ad, &bd, &ai, &bi);
  7. printf("0.0 / 0.0 = %lf\n", ad / bd);
  8. fflush(stdout);
  9. printf("0 / 0 = %d\n", ai / bi);
  10. }
  11.  
Runtime error #stdin #stdout 0s 9424KB
stdin
0 0 0 0
stdout
0.0 / 0.0 = -nan