Back To Java Basics Index
//program to input two decimal point numbers and display difference between them public class differencetwofloat { public static void main(String[] args) { float a,b,c; a=2.23f; b=1.23f; c=a-b; System.out.println("difference between a and b is " + c); } }