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
Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari View all posts by Editorial Staff