fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("%d\n", -5 % 3);
  5. printf("%d\n", 5 % -3);
  6. return 0;
  7. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
-2
2