public class IntDiv { public static void main(String[] args) { int x = 5; int y = 2; int z = x/y; System.out.println("int z = " + z); double d = x/y; System.out.println("double d = " + d); } }
make
make run