Computer Science, asked by Akshaya23, 1 year ago

read two floating point numbers and print the product

Answers

Answered by AnviGottlieb
0
Heya!
Here's your answer!
_______________
___

Suppose we take two floating point Numbers a and b;
Here's a java program to sum them.

public class products
{
public static void main(String ar[])
{
float a = 2.5f;
float b = 3.5f;
float res = product( a , b);
System.out.println("Product of two float point Numbers=" +res);
}
}

OUTPUT:-
Product of two float point Numbers= 8.75

Hope this helps^^


Akshaya23: Thanks
Akshaya23: Thanks a lot my friend
Similar questions