double a + b = c

This commit is contained in:
Mert Gör 🇹🇷 2024-06-30 15:36:03 +03:00
parent cc75cc97df
commit 15028c55de
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
2 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2024-06-30 hwpplayer1 <hwpplayer1@debian>
* 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

14
c-basic/ab_c.c Normal file
View File

@ -0,0 +1,14 @@
#include <stdio.h>
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;
}