public class JavaNew { public static void main(String args[]) { int a,b; double c; a=11; b=2; c=a/b; System.out.println(c); } } Output: 5.0
c = (double)a / b;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)