fork(16) 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 DivisionDemo {
  8.  
  9. public static void main(String[] args) {
  10. int a = 10;
  11. int b = 3;
  12.  
  13. float c = 10.0F;
  14. float d = 3.0F;
  15.  
  16. System.out.println(a/b);
  17. System.out.println(c/d);
  18. System.out.println(a/d);
  19.  
  20. }
  21.  
  22. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
3
3.3333333
3.3333333