From 15028c55de3a7fe8da4763a9fd1bb357d4ef9573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Sun, 30 Jun 2024 15:36:03 +0300 Subject: [PATCH] double a + b = c --- ChangeLog | 2 ++ c-basic/ab_c.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 c-basic/ab_c.c diff --git a/ChangeLog b/ChangeLog index c0943cf..84ade0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2024-06-30 hwpplayer1 + * c-basic/C.pdf: sayfa 22 Fonksiyonların Geri Dönüş Değerleri (return value) + * c-basic/float_double.c: float double example * c-basic/hex_scanf.c: hex scanf example diff --git a/c-basic/ab_c.c b/c-basic/ab_c.c new file mode 100644 index 0000000..1835319 --- /dev/null +++ b/c-basic/ab_c.c @@ -0,0 +1,14 @@ +#include + +int main() +{ + double a, b, c; + printf("type your number a:"); + scanf("%lf", &a); + printf("type your number b:"); + scanf("%lf", &b); + c = a + b; + printf("c is %f\n", c); + + return 0; +} \ No newline at end of file