Multiply Two Floating Point Numbers
public class MultiplyTwoNumbers {
public static void main(String[] args) {
float first = 1.5f;
float second = 2.0f;
float product = first * second;
System.out.println("The product is: " + product);
}
}
When you run the program, the output will be:
The product is: 3.0
Comments
Post a Comment
For More Codes Comment In The Box