From 3f8ba5ba8050c64cfb83b42a2e2a63f02c09475f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Tue, 29 Oct 2024 21:59:59 +0300 Subject: [PATCH] update --- ChangeLog | 4 ++++ c-basic/abc.c | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 c-basic/abc.c diff --git a/ChangeLog b/ChangeLog index 34aee9c..d03d742 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2024-10-29 Mert Gör + * c-basic/C.pdf: return value page 22 + + * c-basic/abc.c: add a and b double numbers from scanf + * c-basic/C.pdf: page 21 question/work * c-basic/d-f.c: #include diff --git a/c-basic/abc.c b/c-basic/abc.c new file mode 100644 index 0000000..7089e5e --- /dev/null +++ b/c-basic/abc.c @@ -0,0 +1,18 @@ +#include + +int main() +{ + double a,b,c; + + printf("enter a number \n"); + scanf("%lf", &a); + + printf("enter b number \n"); + scanf("%lf", &b); + + c = a + b; + + printf("your result and also c number is : %f\n", c); + + return 0; +}