import java.io.*; class inttofloat { public static void main(String[] args) { try { BufferedReader buffreader = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Enter first number:"); int a = Integer.parseInt(buffreader.readLine()); System.out.println("Enter second number:"); int b = Integer.parseInt(buffreader.readLine()); float result = (float) a / b; System.out.println("The result in float type is: " + result); } catch (Exception e) { System.out.println(" Error " + e); } } };