C Program to Multiply Two Floating-Point Numbers

C Program to Multiply Two Floating-Point Numbers

In C Program to Multiply Two Floating-Point Numbers C Program example, the product of two floating-point numbers entered by the user and calculated and printed on the screen.

#include<stdio.h>
#include<conio.h>
void main()
{
float num1,num2,mul;
clrscr();
printf("\n Enter First No:");
scanf("%f",&num1);
printf("\n Enter Second No:");
scanf("%f",&num2);
mul=num1*num2;
printf("\n Multiply Two Floating-Point Numbers =%f",mul);

getch();
}

Output

  • In Multiply Two Floating-Point Numbers C Program example, we will implement the program, how to find Multiply Two Floating-Point Numbers?
  • Here, in this program we taking input from the user of two float number, num1 and num2.
  • Multiply Two Floating of the numbers is calculating by num1*num2 and assigning into variable mul .
TOP