Back To Java Basics Index
//program to input two float (decimal point) values and find their product public class producttwofloat { public static void main(String[] args) { float a,b; float product; a=1.50f; b=2.0f; product=a*b; System.out.println("product of a and b is " + product); } }