fork download
  1. public class Main
  2. {
  3. public static void main(String[] args)
  4. {
  5. int x = 25;
  6. int y= 3;
  7.  
  8. System.out.println(Math.floorMod(19 + 1000, 24));
  9. System.out.println(Math.floorMod(19 - 1000, 24));
  10.  
  11. System.out.println((19 - 1000) % 24);
  12.  
  13. }
  14. }
Success #stdin #stdout 0.09s 47044KB
stdin
Standard input is empty
stdout
11
3
-21