From 1057a9b5f217d28f53105ee5561ee60e1f5ef52a Mon Sep 17 00:00:00 2001 From: "Nayana@github123" Date: Mon, 19 Feb 2024 11:50:14 +0530 Subject: [PATCH] First commit --- mul.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mul.c diff --git a/mul.c b/mul.c new file mode 100644 index 0000000..2b735ae --- /dev/null +++ b/mul.c @@ -0,0 +1,14 @@ +#include +int main() { + double a, b, product; + printf("Enter two numbers: "); + scanf("%lf %lf", &a, &b); + + // Calculating product + product = a * b; + + // %.2lf displays number up to 2 decimal point + printf("Product = %.2lf", product); + + return 0; +} \ No newline at end of file