A Program to Multiply Two Numbers
In this example, we are giving a program to multiply two given numbers which are given by the users.
Program to find the ASCII value:
#include <stdio.h>
int main()
{
double firstNumber, secondNumber, product;
printf("Enter two numbers: ");
// Stores two floating point numbers
scanf("%lf %lf", &firstNumber, &secondNumber);
// Stores the result of multiplication
product = firstNumber * secondNumber;
// Displays the result of multiplication
printf("Product = %.2lf", product);
return 0;
}
Output:
Enter two numbers: 7.5 3.7 Product = 27.75