Multiply two Floating Point Numbers in C Program
Multiply two Floating Point Numbers in C programming with source code and output.
Before proceeding with this tutorial, you should have a basic understanding of Computer Programming terminologies. A basic understanding of any of the programming languages will help you in understanding the C programming concepts and move fast on the learning track.
Multiply two Floating Point Numbers
/* Multiply two Floating Point Numbers in C Program - CODE SCRATCHER */
int main( )
float num1, num2, product;
printf("Enter two numbers: ");
scanf("%f %f",&num1,&num2); /* Stores the two floating point numbers entered by user in variable num1 and num2 respectively */
product = num1*num2; /* Performs multiplication and stores it */
Enter two numbers: 2.4