• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
July 05, 2022 |1.1K Views
C Program to Multiply Two Floating Point Numbers
  Share   Like
Description
Discussion

In this video, we will see a C Program to Multiply two Floating-Point Numbers.
But before that, let us see what is a floating-point number? 
A floating-point number can be defined as a positive or negative whole number with a decimal point/value.

Examples
Input A = 5.12,
B = 8.90
Output = 45.568

Input A = 7.86
B = 2.89
Output = 22.7154

Floating-point figures get their name from the way the decimal point can "float" to any position necessary.

Algorithm:
Step 1 - Take input of two floating-point numbers.
Step 2 - Multiply both the numbers and store them in another float variable.
Step 3 - Print that variable.
Step 4 - Stop the program.

Apart from that time and space complexity for generating a multiply of two floating-point numbers are also covered in this video.

C Program to Multiply two floating-point numbers: https://www.geeksforgeeks.org/c-program-to-multiply-two-floating-point-numbers/

Read More