In this program, we are going to share a C program to multiply two floating point numbers. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a C program to multiply two floating point numbers with the output.
We have designed this program for beginners for learning purpose. Copy below c program and execute it with c compiler to see the output of the program.
double a, b, productOfNumbers;
printf("Enter the numbers: ");
scanf("%lf %lf", &a, &b);
productOfNumbers = a * b;
printf("Product = %.2lf", productofNumbers);
Enter the numbers: 2.4
Product = 2.69
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.