From Subtle Horse, 1 Week ago, written in C.
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     double firstNumber, secondNumber, product;
  5.     printf("Enter two numbers: ");
  6.     // Stores two floating point numbers in variable firstNumber and secondNumber respectively
  7.     scanf("%lf %lf", &firstNumber, &secondNumber);  
  8.  
  9.     // Performs multiplication and stores the result in variable productOfTwoNumbers
  10.     product = firstNumber * secondNumber;  
  11.     // Result up to 2 decimal point is displayed using %.2lf
  12.     printf("Product = %.2lf", product);
  13.    
  14.     return 0;
  15. }
captcha