fork(26) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class RemainerDemo {
  8. public static void main(String[] args) {
  9. int a = 3;
  10. System.out.println(0%a);
  11. System.out.println(1%a);
  12. System.out.println(2%a);
  13. System.out.println(3%a);
  14. System.out.println(4%a);
  15. System.out.println(5%a);
  16. System.out.println(6%a);
  17. }
  18. }
Success #stdin #stdout 0.08s 381184KB
stdin
Standard input is empty
stdout
0
1
2
0
1
2
0