//How to multiply two float numbers in java
public class MultiplicationFloatValues
{
public static void main(String args[])
{
float a=45.324f,b=4.6f,c;
c=a*b;
System.out.println("Multiplication of float values is: "+c);
}
}
OUTPUT:
Multiplication of float values is: 208.4904
public class MultiplicationFloatValues
{
public static void main(String args[])
{
float a=45.324f,b=4.6f,c;
c=a*b;
System.out.println("Multiplication of float values is: "+c);
}
}
OUTPUT:
Multiplication of float values is: 208.4904
No comments:
Post a Comment