double a + b = c
This commit is contained in:
parent
cc75cc97df
commit
15028c55de
@ -1,5 +1,7 @@
|
|||||||
2024-06-30 hwpplayer1 <hwpplayer1@debian>
|
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/float_double.c: float double example
|
||||||
|
|
||||||
* c-basic/hex_scanf.c: hex scanf example
|
* c-basic/hex_scanf.c: hex scanf example
|
||||||
|
14
c-basic/ab_c.c
Normal file
14
c-basic/ab_c.c
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user