public class FloatExample2
{
public static void main(String args[])
{
// FloatExample2
float price = (float) 7.25 * 5;
System.out.println(price);
}
}
Output from FloatExample2.java:
36.25
--- Output Ends ---
NOTE:
You are reading previously generated output. You are not currently running
the FloatExample2 application at the momement. You need to compile and run the
source code first.
To run this program:
javac FloatExample2.java
java FloatExample2
Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR