fork(1) download
  1. class Main {
  2. public static void main(String[] args) {
  3. double teste = 162.0 / 11.0;
  4. System.out.printf("%d", ((int) Math.ceil(teste * 10)) % 10);
  5. }
  6. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
8