From 8ba57275bdd58b2ff8d2c53c9498fe038d044872 Mon Sep 17 00:00:00 2001 From: vivek282000 <75250527+vivek282000@users.noreply.github.com> Date: Tue, 1 Dec 2020 18:21:37 +0530 Subject: [PATCH] Create Vivek.c --- Vivek.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Vivek.c diff --git a/Vivek.c b/Vivek.c new file mode 100644 index 0000000..b48f701 --- /dev/null +++ b/Vivek.c @@ -0,0 +1,17 @@ + +#include + +int main() { + // stdout fix for old GCC in Alpine + setbuf(stdout, NULL); + + // Read input + double a, b; + printf("Enter 2 numbers: "); + scanf("%lf %lf", &a, &b); + + // Calculate and show the result + printf("%.2lf * %.2lf = %.2lf\n", a, b, a * b); + + return 0; +}