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 numbersscanf("%lf %lf", &firstNumber, &secondNumber);// Stores the result of multiplicationproduct = firstNumber * secondNumber;// Displays the result of multiplicationprintf("Product = %.2lf", product);return 0;}
Output:
Enter two numbers: 7.5 3.7 Product = 27.75