fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("3.0/5.0 == 1.0/2.0 * 6.0/5.0: ");
  5. if (3.0/5.0 == 1.0/2.0 * 6.0/5.0) printf("true\n");
  6. else printf("false\n");
  7.  
  8. printf("1.0/3.0 == 1.0/2.0 - 1.0/6.0: ");
  9. if (1.0/3.0 == 1.0/2.0 - 1.0/6.0) printf("true\n");
  10. else printf("false\n");
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
3.0/5.0 == 1.0/2.0 * 6.0/5.0: true
1.0/3.0 == 1.0/2.0 - 1.0/6.0: false