diff options
author | b4rkod <void@Asena.localdomain> | 2024-01-17 21:17:07 +0300 |
---|---|---|
committer | b4rkod <void@Asena.localdomain> | 2024-01-17 21:17:07 +0300 |
commit | b03b61b232c1fa0b9ff1ae607232f8ab3f55ea38 (patch) | |
tree | 9169255eae57e59035595768e8dd46cfaba28f50 /deneme_17.c | |
parent | 2fa043277b090a37b3f378a2fefccc57b5bd2814 (diff) |
Diffstat (limited to 'deneme_17.c')
-rw-r--r-- | deneme_17.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deneme_17.c b/deneme_17.c new file mode 100644 index 0000000..b6a7b3b --- /dev/null +++ b/deneme_17.c @@ -0,0 +1,18 @@ +#include <stdio.h> + +int main() +{ + int say,n; + float snc = 0; + printf("sayiyi giriniz: "); + scanf("%d", &n); + for (int i = 1; i <= n; i++) { + printf("bir sayi giriniz: "); + scanf("%d", &say); + snc += say; + } + snc = snc / n; + printf("eb: %.2f\n",snc); + +} + |