C Program to Multiply two Floating Point Numbers
Given two floating numbers A and B. The task is to write a program to find the product of these two numbers.
Input: A = 2.12, B = 3.88
Input: A = 3.78, B = 6.32
In the below program to multiply two floating point numbers, the user is first asked to enter two floating numbers and the input is scanned using the scanf() function and stored in the variables and . Then, the variables and are multiplied using the arithmetic operator and the product is stored in the variable product.
Below is the C program to multiply two floating point numbers:
Enter two floating numbers A and B : 2.12 3.88 Product of A and B is: 8.225600